编译php 5.3 make时出现错误一:
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
解决办法:
在./configure加上选项:
--disable-fileinfo
Disable fileinfo support 禁用 fileinfo
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-exif --disable-ipv6 --disable-fileinfo
编译php 5.3 make时出现错误二:
make: *** [libphp5.la] Error 1
解决办法:
yum install libtool-ltdl-devel