很久以前我安装了 git 1.7.4.4。 我想升级到 git 1.7.11。
但是,当我运行的时候
sudo make prefix=/usr/local install
它给出了这个错误:
ld: library not found for -lintl
collect2: ld returned 1 exit status
make: * [git-credential-store] Error 1
如何解决?
谢谢
最佳答案
我在 OSX Lion 上尝试构建 wireshark 时遇到了同样的错误消息。看起来 GNU gettext 提供了 libintl。在我的例子中,我通过自制软件安装了 gettext,但是符号链接(symbolic link)不存在,所以运行:
brew link gettext
为我解决了这个问题。
如果您没有安装gettext
,您可能需要安装它,或者使用homebrew。否则。
关于git - ld : library not found for -lintl on mac os x lion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11151197/