PHP编译时报错error: mysql configure failed.以及/usr/bin/ld: cannot find -lmysqlclient
来源:互联网 发布:从java走向javaee 编辑:程序博客网 时间:2024/06/13 23:18
PHP编译过程中报错:
error: mysql configure failed. Please check config.log for more information.
不停百度,看日志,总算解决了。
日志的错误提示/usr/bin/ld: cannot find -lmysqlclient
#/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.so when searching for -lmysqlclient#/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.a when searching for -lmysqlclient#/usr/bin/ld: cannot find -lmysqlclient
先去了/usr/local/mysql/lib/libmysqlclient.so没找到lmysqlclient。
解决办法:
# yum -y install MySQL-devel
还不够,这只是为了在/usr/lib64下产生一个mysql文件夹。然后做一个软链接:
# cd /usr/local/mysql# mv lib lib.bak# ln -s /usr/lib64/mysql /usr/local/mysql/lib
或者把原有的lib备份,(/usr/local/mysql/lib),然后将/usr/lib64/mysql复制到替换它。搞定
如果还没有解决:
mysql相关rpm的64位版除了server之外都装了一遍
也是一个不错的办法哦!
阅读全文
0 0
- PHP编译时报错error: mysql configure failed.以及/usr/bin/ld: cannot find -lmysqlclient
- g++ 连接 mysql 编译报错 /usr/bin/ld: cannot find -lmysqlclient
- /usr/bin/ld: cannot find -lmysqlclient
- /usr/bin/ld: cannot find -lmysqlclient 解决方法
- /usr/bin/ld: cannot find -lmysqlclient解决方法
- /usr/bin/ld: cannot find -lmysqlclient
- 解决/usr/bin/ld: cannot find -lmysqlclient
- 交叉编译时报错:/usr/bin/ld: cannot find -lc
- 解决/usr/bin/ld: cannot find -lmysqlclient错误
- 解决/usr/bin/ld: cannot find -lmysqlclient错误
- 解决/usr/bin/ld: cannot find -lmysqlclient问题
- 解决/usr/bin/ld: cannot find -lmysqlclient错误
- centos64位c语言编译时/usr/bin/ld: cannot find -lmysqlclient
- C连接mysql数据库,报/usr/bin/ld: cannot find -lmysqlclient解决
- 编译时候出现/usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- OJ提交题目中的语言选项里G++与C++的区别
- 局部二值模式LBP(Local Binary Pattern)实现代码
- 计算机网络名词解释大全
- 阿里云服务器 centos web服务器 apache日志监控命令
- Scala 隐式转换规则
- PHP编译时报错error: mysql configure failed.以及/usr/bin/ld: cannot find -lmysqlclient
- 使用0和false犯得错误
- mysql中concat的用法
- vue-cli 整个流程简单学习
- C++ 值传递、指针传递、引用传递详解
- PHP上传绕过
- AndroidStudio利用android-support-multidex解决65536问题64k问题
- NoSuchBeanDefinitionException: No bean named 'xxx' is defined
- JUC锁-02之 互斥锁ReentrantLock