HomebrewでのWarningとError

環境構築参考

http://qiita.com/hirokishirai/items/e38b29a7075459ff6032

 

MacRuby on railsの環境を構築しようとした時のメモ

・Warning: /usr/local/etc isn't writable.

・Warning: /usr/local/share/python is not needed in PATH.

・Warning: Unbrewed dylibs were found in /usr/local/lib.

・Warning: Unbrewed .la files were found in /usr/local/lib.

・Warning: Unbrewed static libraries were found in /usr/local/lib.

・Warning: You have unlinked kegs in your Cellar

・Warning: Broken symlinks were found. Remove them with `brew prune`:

Error: Failed to import: llvm

こいつら、まぁ多くて萎える。

上から1つずつみていくことにする。

 

まず、1個目

Warning: /usr/local/etc isn't writable.

ファイルの権限の問題らしい。

sudo chown ユーザ名:admin /usr/local/etc/

で解決。

 

2個目

Warning: /usr/local/share/python is not needed in PATH.

よくわからないけど、パスがよろしくなかったらしい。

pythonとpipを入れなおしたらなくなった

 

3,4,5個目

Warning: Unbrewed dylibs were found in /usr/local/lib.

Warning: Unbrewed .la files were found in /usr/local/lib.

Warning: Unbrewed static libraries were found in /usr/local/lib.

不要なファイルがのあるのがいけないらしい。

rm -rf

で削除

 

6個目

Warning: You have unlinked kegs in your Cellar

link切れ

brew link app名

で貼り直し

貼り直しのところで新たに出てくる問題

6.1個目

Error: Could not symlink bin/easy_install-2.7

すでにlinkが存在してる?みたいなことが書いてあり,unlinkするかoverwriteし
ろとのこと

brew link --overwrite app名

でなんとかなった。

 

7個目

Warning: Broken symlinks were found. Remove them with `brew prune`:

おそらくlinkが壊れてるから消せってやつだと思う。よくわからんが,

brew prune

でなおった。あとで眠くない時に調べる。

 

8個目

Error: Failburogu ed to import: llvm

謎?しばらく放置