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

空扰寡人 提交于 2021-02-08 15:54:52

问题


I installed git 1.7.4.4 long time ago. And I want to upgrade to git 1.7.11.

However, when I run

sudo make prefix=/usr/local install

it gives this error:

ld: library not found for -lintl

collect2: ld returned 1 exit status

make: * [git-credential-store] Error 1

How to solve it?

thanks


回答1:


I just had the same error message while trying to build wireshark on OSX Lion. It looks like GNU gettext provides libintl. In my case, I had installed gettext via homebrew, but the symlinks were not in place, so running:

brew link gettext

fixed the problem for me.

If you don't have gettext installed, you may want to install it, either using homebrew or otherwise.




回答2:


I certainly haven't tried it, but this appears to be a libintl someone built for OS X.

If you don't know how to point configure to it, you can just copy it into your /usr/lib folder so it can be found.



来源:https://stackoverflow.com/questions/11151197/ld-library-not-found-for-lintl-on-mac-os-x-lion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!