手机
当前位置:查字典教程网 >操作系统 >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下那些超有趣的命令

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

Linux管理员手册(3)--存贮介质

Linux VPS服务器依据系统资源自动重启bash shell脚本

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

用Monit监测Linux 服务器

在Linux中批量建立用户的shell

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

linux ssh 升级安装方法

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

精品推荐
分类导航