尝试从源代码中安装git,它会不断地启动错误:
make install
* new build flags or prefix
CC credential-store.o
In file included from credential-store.c:1:
In file included from ./cache.h:8:
./gettext.h:17:11: fatal error: 'libintl.h' file not found
# include <libintl.h>
^
1 error generated.
make: *** [credential-store.o] Error 1没有多少谷歌在lib.intl.h上找到任何东西。这个难以捉摸的库是什么,我如何才能得到它,从而最终能够安装git?
发布于 2012-07-06 23:15:04
根据系统的不同,它可能是GNU C库(glibc)的一部分。
注意,仅仅安装文件libintl.h不太可能对您有任何好处。
在基于Debian的系统(包括Debian、Ubuntu和Linux )上,它是libc6-dev包的一部分,安装有:
sudo apt-get install libc6-dev由于你使用的是Mac,谷歌搜索的“libintl.hOSX”显示了很多人也有类似的问题。根据Git源中的INSTALL文件:
将
NO_GETTEXT设置为禁用本地化支持,并使Git只使用英语。在autoconf下,如果configure脚本无法在系统上找到libintl,它将自动执行此操作。
https://stackoverflow.com/questions/11370684
复制相似问题