第二次编译报错如下:
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
这个错误时因为在64位的linux系统中,libmysqlclient 默认安装到了 /usr/lib64/mysql/ 目录下,但是php编译时,要去/usr/lib目录下查找
解决办法:在/usr/lib目录下创建一个软连接
[root@localhost php-5.3.28]# ln -s /usr/lib64/mysql/libmysqlclient.so.16 /usr/lib/libmysqlclient.so
出处:http://blog.itpub.net/23249684/viewspace-1242858/
如果最后出现了这个提示:configure: WARNING: unrecognized options: --enable-zend-multibyte
this option in no more as of 5.4. Quoting the changelog:"Added multibyte support by default. Previously php had to be compiled with --enable-zend-multibyte. Now it can be enabled or disabled through zend.multibyte directive in php.ini."
5.4以后的版本不需要在编译参数里加入这个选项了,可以在php配置文件中php.ini中修改