PHP编译安装时候出现下列错误,现在总结如下。希望对网友有所帮助。
1、make: *** [libphp5.la] Error 1 出现此错误解决办法
wget ftp://ftp.ntua.gr/pub/linux/scientificlinux/54/i386/updates/security/libtool-ltdl-1.5.22-7.el5_4.i386.rpm
rpm -ivh libtool-ltdl-1.5.22-7.el5_4.i386.rpm
wget ftp://ftp.ntua.gr/pub/linux/scientificlinux/53/i386/updates/security/libtool-ltdl-devel-1.5.22-7.el5_4.i386.rpm
rpm -ivh libtool-ltdl-devel-1.5.22-7.el5_4.i386.rpm
2、make: *** [ext/gd/libgd/gd_jpeg.lo] Error 1
需要安装libjpeg和libpng包。
当时的编译参数:./configure --prefix=/server/php5 --with-apxs2=/server/apache/bin/apxs --with-mysql=/server/mysql --with-config-file-path=/server/php5/etc --enable-zip --with-curl --with-gd --with-mcrypt --with-zlib-dir=/server/php5/ --with-jpeg-dir --with-png-dir --with-libxml-dir=/usr/local/include/libxml2