configure: error: Cannot find libmysqlclient under /usr
来源:互联网 发布:笑傲江湖ol 知乎 编辑:程序博客网 时间:2024/05/21 08:43
解决办法:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.so /usr/lib/
sudo ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18
在/etc/ld.so.conf.d中添加local.conf文件:
#echo "/usr/local/lib">> /etc/ld.so.conf.d/local.conf
更新动态库:
#ldconfig -v
如果在make的过程中出现以下错误:
/root/dev/php-5.*.*/sapi/cli/php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127
解决办法 (http://blog.haohtml.com/archives/12479)
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/
如果按上面的操作,再次执行 make ZEND_EXTRA_LIBS='-liconv' 后提示以下错误:
"chmod: cannot access `ext/phar/phar.phar': No such file or directory"
只需要重装执行上面的configure命令即可.只需要在./configure的后面加上--without-pear 即可解决办法:http://blog.haohtml.com/archives/12482
如果在make install的时候还提示上面类似的错误,只需要重新从./configure开始再执行一下就可以了.
其它错误参考:http://hi.baidu.com/cfanbo/item/8ff7d41f4fde6c001994ec43
- configure: error: Cannot find libmysqlclient under /usr
- configure: error: Cannot find libmysqlclient under /usr 解决
- 解决configure: error: Cannot find libmysqlclient under /usr.
- configure: error: Cannot find libmysqlclient under /usr/local/mysql.
- PHP编译报错configure: error: Cannot find libmysqlclient under 解决方法
- Fedora 安装php出现错误 Cannot find libmysqlclient under /usr
- 编译安装php, Cannot find libmysqlclient under /usr
- 编译PHP时:configure: error: Cannot find MySQL header files under /usr/mysql
- 编译PHP时提示:configure: error: Cannot find MySQL header files under /usr. 解决
- linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.
- configure: error: Cannot find ldap libraries in /usr/lib 解决办法
- configure: error: Cannot find ldap libraries in /usr/lib
- Cannot find libmysqlclient_r under usr/local/mysql
- 编译php时出现“configure: error: Cannot find MySQL header files under”
- PHP编译时报错error: mysql configure failed.以及/usr/bin/ld: cannot find -lmysqlclient
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- ROS学习笔记(一)
- C++——NOIP2016普及组 t4——魔法阵
- js 显示 emoji 表情
- 混合背包问题
- MFC 各个窗口 控件的风格等
- configure: error: Cannot find libmysqlclient under /usr
- 如何解决sql注入的问题
- [组合数]求组合数的几种方法总结
- 简单的思维导图怎么画
- Mybatis开端
- 使用Python和Flask编写Prometheus监控
- Ubuntu开机报错:could not update ICEauthority file /home/user/.ICEauthority
- Linux初学
- 复习计划(第一次筛选)