免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 10647 | 回复: 3

configure: error: PDO_MYSQL configure failed [复制链接]

论坛徽章:
0
发表于 2008-09-10 13:53 |显示全部楼层
[root@localhost pdo_mysql]# ./configure --with-php-config=/usr/local/php/bin/php-config --enable-pdo --with-pdo-mysql=/usr/local/mysql/ --with-zlib-dir=/usr/local/lib
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -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
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php/include/php
checking for re2c... re2c
checking for re2c version... 0.12.3 (ok)
checking for gawk... gawk
checking for MySQL support for PDO... yes, shared
checking for the location of libz... /usr/local/lib
checking for mysql_config... /usr/local/mysql//bin/mysql_config
checking for mysql_query in -lmysqlclient... no
checking for mysql_query in -lmysqlclient... (cached) no
configure: error: PDO_MYSQL configure failed. Please check config.log for more information.
以上是添加pdo_mysql模块出现的错误,请问各位有知道如何解决的么? php5.2.6     mysql5.0.26

论坛徽章:
7
15-16赛季CBA联赛之佛山
日期:2016-03-30 16:38:31数据库技术版块每日发帖之星
日期:2016-04-09 06:20:00操作系统版块每日发帖之星
日期:2016-06-11 06:20:0015-16赛季CBA联赛之北控
日期:2016-06-23 16:03:35C
日期:2016-10-25 16:19:21PHP
日期:2016-10-25 16:19:2115-16赛季CBA联赛之天津
日期:2017-01-07 13:22:29
发表于 2016-05-30 23:46 |显示全部楼层
请问 你是怎么解决的?

论坛徽章:
0
发表于 2016-05-31 18:14 |显示全部楼层
不使用mysql的库 ,用php官方的mysqlnd。--with-pdo-mysql=mysqlnd ,php 5.3+版本都可以。

论坛徽章:
10
CU大牛徽章
日期:2013-09-18 15:20:48程序设计版块每日发帖之星
日期:2016-07-21 06:20:00IT运维版块每日发帖之星
日期:2015-07-30 09:40:01技术图书徽章
日期:2014-10-14 16:00:43天蝎座
日期:2013-09-27 17:41:29CU大牛徽章
日期:2013-09-18 15:21:17CU大牛徽章
日期:2013-09-18 15:21:12CU大牛徽章
日期:2013-09-18 15:21:06CU大牛徽章
日期:2013-09-18 15:20:58每日论坛发贴之星
日期:2016-07-21 06:20:00
发表于 2016-07-18 15:55 |显示全部楼层
hecking for mysql_query in -lmysqlclient... no
checking for mysql_query in -lmysqlclient... (cached) no

先安装mysqlclient 就好了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP