[[Mac全般]]

*Rictyのインストール [#n4da912d]
***事前準備 [#b5a06cdb]
 $ brew install automake
 $ brew install pkg-config
 $ brew install autoconf
 
***brew-caskもインストール(トラブルシュートあり) [#a3a5e961]
 $ brew install caskroom/cask/brew-cask
 ==> Installing brew-cask from caskroom/homebrew-cask
 ==> Cloning https://github.com/caskroom/homebrew-cask.git
 Updating /Library/Caches/Homebrew/brew-cask--git
 ==> Checking out tag v0.53.3
 Error: parent directory is world writable but not sticky
 Please report this bug:
     https://git.io/brew-troubleshooting
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tmpdir.rb:92:in `mktmpdir'
 /usr/local/Library/Homebrew/utils/fork.rb:6:in `safe_fork'
 /usr/local/Library/Homebrew/formula_installer.rb:481:in `build'
 /usr/local/Library/Homebrew/formula_installer.rb:184:in `install'
 /usr/local/Library/Homebrew/cmd/install.rb:165:in `install_formula'
 /usr/local/Library/Homebrew/cmd/install.rb:83:in `block in install'
 /usr/local/Library/Homebrew/cmd/install.rb:83:in `each'
 /usr/local/Library/Homebrew/cmd/install.rb:83:in `install'
 /usr/local/Library/brew.rb:140:in `<main>'
 
 $ cd ~/
 $ ls -l
 lrwxr-xr-x@  1 root  wheel    11  2 22 17:56 tmp -> private/tmp
 $ sudo chmod +t tmp/
 $ cd tmp/
 $ brew install caskroom/cask/brew-cask
 ==> Installing brew-cask from caskroom/homebrew-cask
 ==> Cloning https://github.com/caskroom/homebrew-cask.git
 Updating /Library/Caches/Homebrew/brew-cask--git
 ==> Checking out tag v0.53.3
 🍺  /usr/local/Cellar/brew-cask/0.53.3: 2421 files, 9.5M, built in 2 seconds
 
*xquartzのインストール [#a3d719b3]
 $ brew install Caskroom/cask/xquartz
 ==> brew cask install Caskroom/cask/xquartz
 ==> We need to make Caskroom for the first time at /opt/homebrew-cask/Caskroom
 ==> We'll set permissions properly so we won't need sudo in the future
 Password:
 ==> Downloading https://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.7.dmg
 ######################################################################## 100.0%
 ==> Running installer for xquartz; your password may be necessary.
 ==> Package installers may write to any location; options such as --appdir are ignored.
 
 ==> installer: Package name is XQuartz 2.7.7
 ==> installer: Installing at base path /
 ==> installer: The install was successful.
 🍺  xquartz staged at '/opt/homebrew-cask/Caskroom/xquartz/2.7.7' (64M)
 
*Rictyのインストール [#ea6abecc]
 $ brew install ricty
※rictyが見つからないと表示された場合は、[[こちらのリンク>#jbe43f41]]を参照する。
 
 $ cp -f /usr/local/Cellar/ricty/3.2.4/share/fonts/Ricty*.ttf ~/Library/Fonts/
 $ fc-cache -vf
 /usr/share/fonts: skipping, no such directory
 /System/Library/Fonts: caching, new cache contents: 156 fonts, 0 dirs
 /Library/Fonts: caching, new cache contents: 422 fonts, 0 dirs
 /Users/kazuma/Library/Fonts: caching, new cache contents: 4 fonts, 0 dirs
 /Users/kazuma/.local/share/fonts: skipping, no such directory
 /Users/kazuma/.fonts: skipping, no such directory
 /usr/local/var/cache/fontconfig: cleaning cache directory
 /Users/kazuma/.cache/fontconfig: not cleaning non-existent cache directory
 /Users/kazuma/.fontconfig: not cleaning non-existent cache directory
 fc-cache: succeeded
~
ここまできたらターミナルでRictyが選択可能です。

*トラブルシュート:Rictyが見つからない場合。 [#jbe43f41]
**対処 [#hc84d9be]
-brewのリポジトリを追加する
-リポジトリの追加には"tap"を使用する

**手順 [#f9b3af5c]
 $ brew tap sanemat/font
 $ brew search ricty

**参考URL [#a7bbc8a0]
http://www.task-notes.com/entry/20150124/1422091466

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS