|
|
我分别用了以下参数测试
# ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr/lib
# ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir=/usr/lib
# ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr
# ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir=/usr
结果都一样
Configuring extensions
checking for OpenSSL support... no
checking for Kerberos support... no
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... /usr(或是/usr/lib)
configure: error: Cannot find libz
我确认了/usr/lib目录下有个lib.so.1连接到lib.so.1.2.2
php版本是4.3.11 :help |
|