Help us understand the problem. What is going on with this article?

Macbook Pro 事始め備忘録

More than 1 year has passed since last update.

目的

Macbook Proを購入した際の環境構築のための手順を記載します。

  • OpenMPIを用いた並列計算
  • Fortran, C, C++のコンパイル
  • tex環境の構築

が可能になります。

備忘録

.bashrcの作成

# ~/.bashrc

export EVENT_NOKQUEUE=1

PS1="[\u:\W]$"

.bash_profileの作成

# ~/.bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi

export PATH=$PATH:/usr/local/bin

アプリのインストール

  • Chrome
  • Paraview
  • Sublime text 3
  • Ricty diminished
  • Skim
  • Sizeup

Sublime text 3の設定

  • installパッケージをGithubからインストール
    • Flatland
    • ConvertToUTF-8
    • japanize
    • minimalFortran
    • rsub
    • LatexTools
    • OmniMarkupPreviewer
  • Browse Packages/Userに自身でfixしたテーマをコピー

User Prefernceは以下のように設定する。

{
  "color_scheme": "Packages/User/Flatland Dark.tmTheme",
  "default_encoding": "UTF-8",
  "default_line_ending": "unix",
  "draw_white_space": "all",
  "fallback_encoding": "UTF-8",
  "file_exclude_patterns":
  [
    "*.mod",
    "*.pyc",
    "*.pyo",
    "*.exe",
    "*.dll",
    "*.obj",
    "*.o",
    "*.a",
    "*.lib",
    "*.so",
    "*.dylib",
    "*.ncb",
    "*.sdf",
    "*.suo",
    "*.pdb",
    "*.idb",
    ".DS_Store",
    "*.class",
    "*.psd",
    "*.db",
    "*.sublime-workspace"
  ],
  "find_selected_text": true,
  "flatland_square_tabs": true,
  "font_face": "Ricty Diminished",
  "font_options":
  [
    "no_bold"
  ],
  "font_size": 13,
  "highlight_line": true,
  "ignored_packages":
  [
    "Objective-C",
    "Vintage"
  ],
  "open_files_in_new_window": false,
  "show_encoding": true,
  "show_full_path": true,
  "tab_size": 2,
  "theme": "Flatland Dark.sublime-theme",
  "translate_tabs_to_spaces": false,
  "trim_trailing_white_space_on_save": true,
  "word_wrap": true
}

Preferences > Package Settings > LaTeX Tools > Setting User の
"builder_settings" : {}の中に、以下を加筆する。

"command" : ["latexmk", "-cd",
  "-e", "$latex = 'platex %O -interaction=nonstopmode -synctex=1 %S'",
  "-e", "$biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B'",
  "-e", "$bibtex = 'upbibtex %O %B'",
  "-e", "$makeindex = 'upmendex %O -o %D %S'",
  "-e", "$dvipdf = 'dvipdfmx %O -o %D %S'",
  "-f", "-%E", "-norc", "-gg", "-pdfdvi"],

Homebrewによるインストール

はじめに、https://brew.sh/index_jaからHomebrewのインストールを行う。

brew install gcc
brew install cmake
brew install gnuplot
brew install open-mpi

BasicTeXのインストール

以下のbrewコマンドでインストールする。

brew install ghostscript
brew install gnupg2
brew tap caskroom/cask
brew cask install basictex

インストール後は、以下のコマンドで、tex環境を構築する。

sudo tlmgr update --self --all
sudo tlmgr install collection-langjapanese
sudo tlmgr install txfonts algorithms helvetic latexmk
sudo tlmgr install latexmk framed enumitem
cd /usr/local/texlive/2018basic/texmf-dist/scripts/cjk-gs-integrate
sudo ./cjk-gs-integrate.pl --link-texmf --force
sudo mktexlsr
sudo fmtutil --all
kanji-config-updmap -sys ipaex

以下のコマンドを利用し、フォントの環境を確認する。
フォントが埋め込まれていない場合には、CURRENT family : noEmbedと帰ってくる。

kanji-config-updmap status
ricos
FEMによる構造解析、機械学習の専門家集団。計算資源のクラウド提供もしています。
https://www.ricos.co.jp/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした