免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2602 | 回复: 4
打印 上一主题 下一主题

php编译 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-06-14 14:08 |只看该作者 |倒序浏览
php编译--with-mysqli=--with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config  出错。错误是mysql version wrong or lib not find,check mysql_config for more information。 做了ln -s /usr/local/mysql/bin/mysql_config /usr/bin 后错误是
checking for mysql_query in -lmysqlclient... (cached) no
configure: error: PDO_MYSQL configure failed. Please check config.log for more information
网上看的方法都通不过,恳请高手指点迷津啊。。。。。

论坛徽章:
0
2 [报告]
发表于 2011-06-14 15:44 |只看该作者
你安装的mysql是源码安装的吗?错误提示mysql的版本的问题,将mysql重新安装,然后再来编译php

论坛徽章:
0
3 [报告]
发表于 2011-06-14 16:21 |只看该作者
是源码安装的mysql5.5.10 我重新安装过mysql了,但还是不行。。郁闷

论坛徽章:
0
4 [报告]
发表于 2011-06-14 17:11 |只看该作者
这是查看config.log的日志底端显示,还请高手指点哦
configure: failed program was:
#line 72408 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_query();

int main() {
mysql_query()
; return 0; }
configure:72772: checking for mysql_query in -lmysqlclient

论坛徽章:
0
5 [报告]
发表于 2011-06-15 10:45 |只看该作者
倒腾了半天 原来是mysql5.5.10版本的问题,mysql5.5以后的版本mysqli和php不能兼容,更换mysql版本后顺利通过。搞定
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP