启动php时候出现如下错误:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php-5.2.14/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
解决方法:
1、 wget
2、 /usr/local/php-5.2.14/bin/phpize
3、 ./configure --with-php-config=/usr/local/php-5.2.14/bin/php-config
4、 make
5、 make install
如果还有如下错误
1、libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
解决方法:
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/
重启nginx
2、checking for gawk... gawk
checking for MySQL support for PDO... yes, shared
checking for mysql_config... not found
configure: error: Cannot find MySQL header files under
解决方法:
yum install mysql-devel
然后重新
./configure --with-php-config=/usr/local/php-5.2.14/bin/php-config
make
make install
阅读(3537) | 评论(0) | 转发(0) |