手机
当前位置:查字典教程网 >操作系统 >unix linux >error while loading shared libraries: libmysqlclient.so.18解决方法
error while loading shared libraries: libmysqlclient.so.18解决方法
摘要:今天给公司服务器编译完php后,打算启动php-fpm的时候,居然给我报:errorwhileloadingsharedlibraries:...

今天给公司服务器编译完php后,打算启动php-fpm的时候,居然给我报:error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory这个错误,我的mysql是二进制包,位置是/usr/local/mysql下,然后我看了下/usr/local/mysql/lib/下是有libmysqlclient.so.18这个文件的.

解决办法

1.先确认/usr/local/mysql/lib/下是否有libmysqlclient.so.18这个文件.

ll /usr/local/mysql/lib/|grep libmysqlclient.so.18

2.修改ld.so.conf文件

echo "/usr/local/mysql/lib" >>/etc/ld.so.conf

然后执行ldconfig使其生效.

【error while loading shared libraries: libmysqlclient.so.18解决方法】相关文章:

Linux管理员手册(7)--管理用户帐户

Red Hat Linux中自动运行程序

Linux下双网卡双网关路由表配置相关资料

用Monit监测Linux 服务器

在Linux中批量建立用户的shell

Linux执行.sh文件,提示No such file or directory的问题的解决方法

linux下tar命令遇到error:"Error exit delayed from previous errors"的问题及解决

Linux下虚拟域名的实现(1)

确保Linux系统安全的前提条件 漏洞防护

Apache 2.0.55 for Linux 下载

精品推荐
分类导航