手机
当前位置:查字典教程网 >操作系统 >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管理员手册(3)--存贮介质

在Linux中批量建立用户的shell

linux shell字母转换写法

Linux top命令的用法详细详解

远程linux xshell下输出中文乱码解决方法

浅析Linux下那些超有趣的命令

Linux操作系统的启动步骤详细说明

linux usb不能识别解决方法

libmysqlclient.so.10无法找到

用Monit监测Linux 服务器

精品推荐
分类导航