Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 347
jayjays Avatar asked Jun 22 '12 06:06

jayjays


2 Answers

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.

like image 191
m01 Avatar answered Nov 05 '22 02:11

m01


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.

like image 41
wadesworld Avatar answered Nov 05 '22 02:11

wadesworld