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

前端 未结 12 1552
半阙折子戏
半阙折子戏 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:14

    Depending on the system, it's probably part of the GNU C library (glibc).

    Note that just installing the file libintl.h isn't likely to do you any good.

    On Debian-based systems (including Debian, Ubuntu, and Linux Mint), it's part of the libc6-dev package, installed with:

    sudo apt-get install libc6-dev
    

    Since you're using Mac OS X, a Google search for "libintl.h OSX" shows a lot of people having similar problems. According to the INSTALL file in the Git sources:

    Set NO_GETTEXT to disable localization support and make Git only use English. Under autoconf the configure script will do this automatically if it can't find libintl on the system.

提交回复
热议问题