VPS侦探论坛

 找回密码
 注册
查看: 7043|回复: 4

使用php升级脚本后,出现了以下报错

[复制链接]
发表于 2012-9-4 11:26:09 | 显示全部楼层 |阅读模式

[04-Sep-2012 11:17:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
done

虽然重启了以后,不影响使用,但是每次重启lnmp都会提示这个问题,不知道如何解决?

请大家帮忙,多谢!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-9-4 11:58:34 | 显示全部楼层


对了,我是升级到5.4.6,而且我升级以后,只在/home/lnmp0.7/PDO_MYSQL-1.0.2/modules/pdo_mysql.so/home/lnmp0.7/PDO_MYSQL-1.0.2/.libs/pdo_mysql.so

这两个路径下面看到了这个文件

[ 本帖最后由 loren 于 2012-9-4 12:44 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-9-4 19:32:45 | 显示全部楼层

5.4.×版本暂时未测试,按提示是PDO_MYSQL没编译安装成功
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-12-12 03:55:56 | 显示全部楼层



cc -I -I/usr/local/mysql/include/mysql -g -I. -I/root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2 -DPHP_ATOM_INC -I/root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2/include -I/root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2/main -I/root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2/pdo_mysql.c  -fPIC -DPIC -o .libs/pdo_mysql.o
In file included from /root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2/pdo_mysql.c:31:
/root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h:25:19: error: mysql.h: No such file or directory
In file included from /root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2/pdo_mysql.c:31:
/root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h:36: error: expected specifier-qualifier-list before 'MYSQL'
/root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h:48: error: expected specifier-qualifier-list before 'MYSQL_FIELD'
/root/lnmp0.8/php-5.4.9/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h:53: error: expected specifier-qualifier-list before 'MYSQL_RES'
make: *** [pdo_mysql.lo] Error 1
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-12-12 14:28:10 | 显示全部楼层

5.4暂时没测试过不好说原因

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 02:37 , Processed in 0.026095 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表