GD源码包安装错误

GNU 源码安装借用YUM 排除故障
 
作者:田逸( [email protected]
安装 php5 需要 gd2 的支持,但在安装过程中,执行编译的时候出现下面的错误:
root@web1 gd-2.0.35]# make
cd . && /bin/sh /root/gd-2.0.35/config/missing --run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library
 cd . && /bin/sh /root/gd-2.0.35/config/missing --run automake-1.9 --foreign
cd . && /bin/sh /root/gd-2.0.35/config/missing --run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
make: *** [configure] Error 1
 
把报错信息“ configure.ac:64: error: possibly undefined macro: AM_ICONV ”拿到 google 里搜索,得到“ But you need to have gettext ”没有 gettext 这个包。
 
那好吧,我们来安装这个 gettext 。在 centos 5 里,默认安装了包管理工具,为了省事赶时间,拿它来试试。其过程如下:
[root@web1 gd-2.0.35]#yum install gettext
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
base                      100% |=========================| 1.1 kB    00:00    
updates                   100% |=========================|  951 B    00:00    
addons                    100% |=========================|  951 B    00:00    
extras                    100% |=========================| 1.1 kB    00:00    
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
很快就装好了,再执行 make 编译命令,一切 ok!
 
注:用YUM只是权宜之计,并不是上上之选.因此强烈建议使用GNU源码

本文出自 “mysql-custer” 博客,谢绝转载!

你可能感兴趣的:(职场,休闲,GD源码包,GD安装错误)