是的,我知道 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 是不是太老了?提前致谢!
检查系统上是否安装了 gd-devel 或 libgd-devel。