macでfontforgeをインストールするときにlibiconvがbrewから使えなくて困った
brew install fontforge
でインストールしようとして
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [../libgunicode.la] Error 1 make: *** [libgunicode] Error 2
こんな感じで怒られたので
brew install fontforge -v
したら
Undefined symbols for architecture x86_64: "_libiconv", referenced from: ....
んな感じで怒られてたので
libiconvをインストールしてみると。。。
brew install libiconv Error: No available formula for libiconv Apple distributes libiconv with OS X, you can find it in /usr/lib. Some build scripts fail to detect it correctly, please check existing formulae for solutions.
っていう感じで怒られたので、
ホントは/usr/libに入っているのを使えたら良かったんだけどやり方がよく分からなかったので
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz tar xvfz libiconv-1.13.1.tar.gz cd libiconv-1.13.1 ./configure --prefix=/usr/local/Cellar/libiconv/1.13.1 make sudo make install
でとりあえず自力でインストール(http://bullrico.com/2012/07/12/installing-nokogiri-after-updating-homebrew/)を参考にしちゃったのですが、今は
http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
のほうがいいかもです。
このままだとまだ最初と同じエラーが出るので
brew link libiconv brew install fontforge
でいけましたという話
takam