error while loading shared libraries: libmysqlclient.so.18解决方法
程序员文章站
2023-11-01 09:21:46
这篇文章主要介绍了error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory解决方法,需要的朋友可以参考下... 14-12-31...
今天给公司服务器编译完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解决方法
-
解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
-
安装ImageMagick出现error while loading shared libraries的解决方法
-
解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
-
error while loading shared libraries: xxx: cannot open shared object file: No such file or directory
-
gmx-MMPBSA — error while loading shared libraries: libgfortran.so.3: cannot open shared object file
-
mysql初始化/usr/local/mysql/bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
-
ggsci: error while loading shared libraries: libnnz11.so
-
Nginx启动错误:error while loading shared libraries: libpcreso1
-
sqlplus: error while loading shared libraries未公布的b