php: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No
程序员文章站
2022-06-01 21:58:29
...
解决方法:
1、进入mysql安装目录查看,确认有libmysqlclient.so.16.0.0 文件, 于是需要在/usr/lib目录下建立一个软链接来指向libmysqlclient.so.16
2、在php lib目录下下建立个软链接:(格式为:ln -s mysql lib路径 php lib路径)ln -s /home/openpf/app/mysql-5.1.56-2/lib/mysql/libmysqlclient.so.16 /home/openpf/app/php-5.3.3/lib/php/extensions/no-debug-non-zts-20090626/libmysqlclient.so
上一篇: mysql命令行中文乱码
下一篇: ThinkPHP中关联查询实例
推荐阅读
-
解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
-
解决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
-
错误解决:error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory,errorwhileloading_PHP教程
-
错误解决:error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory,errorwhileloading_PHP教程
-
php: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No
-
安装ImageMagick出现error while loading shared libraries的解决方法,sharedlibraries_PHP教程
-
error libGL.so: cannot open shared object file: No