什么是libintl.h,我在哪里可以得到它? [英] What is libintl.h and where can I get it?

查看:2191
本文介绍了什么是libintl.h,我在哪里可以得到它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图从源代码安装git,并继续踢出错误:

  make install 
*新建标志或前缀
CC credential-store.o
从credential-store.c包含的文件中:1:
在./cache.h:8包含的文件中:
./gettext.h:17:11:致命错误:找不到'libintl.h'文件
#include< libintl.h>
^
1产生的错误。
make:*** [credential-store.o]错误1

谷歌搜索引起了lib.intl.h上的所有问题。什么是这个难以捉摸的库,我怎样才能得到它,所以我可以最终安装git?

解决方案

根据系统,它是可能是GNU C库(glibc)的一部分。



请注意,只安装文件 libintl.h isn'在基于Debian的系统上(包括Debian,Ubuntu和Linux Mint),它是 libc6的一部分。 b
$ b

-dev 软件包,安装时包含:

  sudo apt-get install libc6-dev 

由于您使用的是Mac OS X,Google搜索libintl.h OSX会显示很多人类似的问题。根据Git源文件中的 INSTALL 文件:
$ b


NO_GETTEXT 来禁用本地化支持,并让Git只使用英文。在 autoconf 下,如果 libintl code>在系统上。


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 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

No amount of Googling has turned up anything on lib.intl.h. What is this elusive library, and how can I get it so I can finally install git?

解决方案

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.

这篇关于什么是libintl.h,我在哪里可以得到它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆