What is libintl.h and where can I get it?

前端 未结 12 1535
半阙折子戏
半阙折子戏 2021-02-02 05:52

Trying to do a make install of git from source, and it keep kicking up the error:

 make install
* new build flags or prefix
CC credential-store.o
In file include         


        
12条回答
  •  野的像风
    2021-02-02 06:12

    I learned libintl comes from libgettext. If you already installed gettext by Homebrew, you would see:

    $ locate libintl
    /usr/local/Cellar/gettext/0.18.3.2/lib/libintl.8.dylib
    /usr/local/Cellar/gettext/0.18.3.2/lib/libintl.a
    /usr/local/Cellar/gettext/0.18.3.2/lib/libintl.dylib
    <..snip..>
    

    and the following works for me on the issue of "library not found for -lintl"

    ln -s /usr/local/Cellar/gettext/0.18.3.2/lib/libintl.* /usr/local/lib/
    

提交回复
热议问题