jayjays
jayjays

Reputation: 71

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

Upvotes: 5

Views: 6471

Answers (2)

m01
m01

Reputation: 9385

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.

Upvotes: 22

wadesworld
wadesworld

Reputation: 13753

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.

Upvotes: 2

Related Questions