是的,我知道 FC5 很旧,但这就是我们这里所拥有的。我正在运行
%./configure --with-mysql=/usr/include/mysql
--with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr
--with-magickwand=/usr/local/bin --enable-track-vars=yes --with-curl
--with-xml=/usr/include/php/ext/xml
--with-libxml-dir=/usr/include/php/ext/libxml --with-ldap=/usr --with-gettext
--with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --enable-ftp
--with-openssl=/usr
...
%make
我得到:
%ext/gd/.libs/gd.o: In function `_php_image_bw_convert':/usr/local/src/php-5.2.5/ext/gd/gd.c:4854: undefined reference to `gdImageCreate'
:/usr/local/src/php-5.2.5/ext/gd/gd.c:4860: 对“gdImageColorAllocate”未定义引用.....
为什么会这样失败?FC5 是不是太旧了?提前谢谢!
答案1
检查系统上是否安装了 gd-devel 或 libgd-devel。