Error Cannot Locate Header File Libintl.h
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up What is libintl.h and where can I get it? up vote 25 down vote favorite 3 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
时,在 configure 配置阶段出现如题所示错误。找不到 libintl.h 头文件。 解决方法如下: 1. 安装 gettext: brew install gettext 1 brew install gettext 2. 编辑 configure 文件: 将: for i in $PHP_GETTEXT /usr/local /usr ; do 1 for i in $PHP_GETTEXT /usr/local /usr ; do 更改为: for i in $PHP_GETTEXT /usr/local /usr /usr/local/opt/gettext; do 1 for i in $PHP_GETTEXT /usr/local /usr /usr/local/opt/gettext; do 3. 重新运行 ./configure 即可 作者 刘静发布于 2014 年 5 月 30 日分类 未分类标签 PHP 《configure: error: Cannot locate header file libintl.h 错误的解决方法》有1个想法 fengqi说道: 2015 年 1 http://stackoverflow.com/questions/11370684/what-is-libintl-h-and-where-can-i-get-it 月 6 日 19:04 感谢,问题搞定了 登录以回复 发表评论 取消回复要发表评论,您必须先登录。 文章导航 上一 上篇文章: 深入理解 PHP 之 count 函数下一 下篇文章: tar 解压常用压缩文件格式命令大全 搜索: 搜索 标签access apache bash c C/C++ centos chmod chown compile cpuinfo css Database dpkg fpm glibc htaccess ide Java javascript join Linux mac mdb mdbtools mysql nginx PHP php.ini seo service shell sql storytlr https://upliu.net/configure-error-cannot-locate-header-file-libintl-h-%E9%94%99%E8%AF%AF%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95.html ubuntu vim vps Web Windows wireless wordpress 乱码 基础算法 设计模式 路由器 运维 最近更新 保持对数字的敏感度 2016 年 8 月 19 日 Ubuntu 如何设置 LD_LIBRARY_PATH 的值 2016 年 4 月 5 日 如何定位 app is not installed 错误 2016 年 3 月 31 日 Yii2 AssetBundle js 和 css 没有自动更新的问题 2016 年 3 月 16 日 Is this php's bug? 2016 年 3 月 11 日 记域名备案以及服务器迁到腾讯云上来 2016 年 1 月 16 日 配置 nginx 访问 http 自动跳转 https 2015 年 12 月 17 日 在 Mac OSX 中如何使用 Finder 浏览 /tmp 目录 2015 年 10 月 10 日 compile php with openssl on mac osx error 2015 年 10 月 8 日 CentOS7 80 端口开启远程访问 2015 年 9 月 11 日 蜗牛工作室介绍 2015 年 8 月 18 日 查看图片大小色度等信息的命令 identify 2015 年 3 月 16 日 Mac OS X 命令行下 Finder 打开当前文件夹 2015 年 3 月 6 日 Mac OS X 编辑状态下可用快捷键 2015 年 3 月 3 日 一个人代码质量与他使用什么编辑器
install PHP with -gettext and --axps but running introproblems.Im running the latest OS X and have installed http://grokbase.com/t/php/php-install/032p37t1m1/more-mac-os-x-php-intall-problems the developer tools. But itseems like im still missing somthing...When I run ./configure I get somewhere.About to here:checking for the location of libXpm... nochecking for FreeType http://www.imthi.com/blog/linux/compile-and-install-php-528-on-mac-os-x-1056-leopard.php 1.x support... nochecking for FreeType 2... nochecking for T1lib support... nochecking whether to enable truetype string function in GD... nochecking for GNU gettext support... yesconfigure: error: error cannot Cannot locate header file libintl.h[Jezebel:/apps/php-4.3.0] root#I was using the command line:./configure --with-apxs --with-gettextWhen I do the configure without add get text the configure runs smoothly butI get this error on the Sudo Make InstallInstalling PHP SAPI module[activating module `php4' in /private/etc/httpd/httpd.conf]cp libs/libphp4.so /usr/libexec/httpd/libphp4.socp: libs/libphp4.so: No such file or directoryapxs:Break: Command failed with error cannot locate rc=1make: *** [install-sapi] Error 1If anyone can help me out. Please remeber I am a complete begginer step bystep instructions!Thanksian reply Tweet Search Discussions Search All Groups PHP php-install 3 responses Oldest Nested Russell Harding I have successfully installed PHP 4.3.0 on MacOS X, but it took a bit of work and a lot of 'under the hood' knowlege of the OS. However, now that it has been done, and I know what packages are needed and what versions are compatable with MacOS X, I can help you with step-by-step instructions. I am not able to compile the instructions at this time, but will throw something together tomorrow, and give the URL to the list. ** Somewhat off-topic ** MacOS X is less like a normal *NIX than many would Russell Harding at Feb 24, 2003 at 3:03 am ⇧ I have successfully installed PHP 4.3.0 on MacOS X, but it took a
finally decided to compile PHP5 native on my mac. Entropy was a best option for mac till Leopard was released. Since Leopard came with php built in entropy was no more available. After Googling for a long time and breaking my head with errors for 7 long hours I finally got it working perfectly like how I wanted it. These are some of the steps I followed to compile the same. I tested the same steps in 2 macs and it was working fine. I cannot guarantee that these steps would work for everyone. Step 1 You need to have Xcode installed on your mac. In my case I had Xcode 3.1.2 installed. You can install from your Leopard DVD or you can install iPhone SDK. Step 2 Download and install the latest Mysql database server. Step 3 Install Fink. You can download the version 0.9.0 which I used for compiling from here. Once you have installed open terminal and issue the following commands.
# sudo fink selfupdate
# sudo fink update-all The above two commands will update the needed files for fink library to work properly. Once this is done you can install needed libraries for php by issuing the following command
# sudo fink install libjpeg libtiff libpng3 libxml t1lib5 libmcrypt libmhash mysql15-dev curl wget Step 4 Install FrontBase if it is needed for you. It is installer file you can download it from here. If you don't want to use this database system you can remove the option ‘-with-fbsql' from the php configure command. Step 5 Install Freetds if you want use MS-SQL in PHP5.
# sudo su
# curl -O http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
# tar xvzf freetds-stable.tgz
# cd freetds-0.82/
# ./configure && make && sudo make install Incase if you feel this is not needed for your installation you can remove the option ‘-with-mssql' and ‘-enable-dbase' from the php configure command. Step 6 Install Imap Client libraries files. You need this lib to be installed if you wish to compile imap. If you don't want you can remove the option ‘-with-imap' and ‘-with-imap-ssl'. Further reading on this topic visit here.
# sudo su
# curl -O ftp://ftp.cac.washington.edu/imap/c-client.tar.Z
# tar xvzf c-client.tar.Z
# cd imap-2007e/
# make oxp
# cd c-client/
# cp *.h /usr/local/include
# cp *.c /usr/local/lib
# cp c-client.a /usr/local/lib/libc-client.a Step 7 Install gettext.