安装GD2的时候报错

make GD的时候报错,如下:

[root@wangmukun 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

问题原因:

系统缺少 gettext


解决方法:

1.到 http: //www.gnu.org/software/gettext/下载了gettext-0.17.tar.gz

cp /usr/lib/libattr.* /lib/


2. 加上参数
./configure --enable-m4_pattern_allow


你可能感兴趣的:(职场,休闲,gd2)