キチログ

Keep it simple, stupid.

homebrewインストール(mac)

をやったので、メモ。(mac)


そもそもhomebrewを入れてないのでそのインストールから。


homebrewインストール

とりあえず以下のコマンドをターミナルでたたきましょう。

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

これでだめなら以下のリンクを参考。command line toolsなどなにか不足がある可能性。
http://tools4hack.santalab.me/howto-mountainlion-install-homebrew.html

さて。
ぼくは無事にインストールできました。
しかし、診断の結果、問題発生。

brew doctor

とコマンドをうったら、「Your system is raring to brew.」と表示されるはずが、、以下の警告。


PC-5973:~ A18525$ brew doctor
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
/usr/local/lib/pkgconfig/fuse.pc

なになに。
問題起こしそうな邪魔ファイルがあるので消してくださいといわれてます。。
どうやら
拡張子が.pcだとhomebrewさんのお気に触るようです。

ということで、消すのも何なので。
仮入れディレクトリ作ってそっちに.pcファイル移したらokでした。



あとはかんたん。

brew install なんやらかんやら

で。ファイル配置よしなに勝手にやってくれているので、速攻ターミナルで使えるかららくちん。