git - ld : library not found for -lintl on mac os x lion

标签 git installation

很久以前我安装了 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/

相关文章:

windows - 如何从 MSI 包安装 Windows 更新

windows-services - 如何使用 WiX 安装和启动 Windows 服务

cuda - 以没有 GPU 的非 root 用户身份安装 CUDA

windows - git - 强制 lf 行结尾不捕获二进制文件

git: 找不到 blob - 想从包中删除它

git - 如何回到之前的master分支

git - 在等待审阅者 merge pull 请求时,我应该从分支分支吗?

Git Hook : once a branch is merged into master - update JIRA status

macos - biopython 安装测试失败 : ERROR: test_fetch_xml_schemas (test_Entrez_online. EntrezOnlineCase)

installation - 为什么 "C:\Program Files"用作默认值。如果我们改变它,是否有任何违规或性能下降?