在Fedora Core 5上安装PHP

是的,我知道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。