在CentOS6上编译安装php时的libmysqlclient.so.18 错误Error 12

/root/dev/php-5.3.6/sapi/cli/php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

make: *** [ext/phar/phar.php] Error 127


32位操作系统:

ln -s /usr/local/mysql/lib/libmysqlclient.so.18  /usr/lib/


64位操作系统:

ln -s /usr/local/mysql/lib/libmysqlclient.so.18  /usr/lib64/


另外:在编译的时候,不写mysql的路径,而使用mysqlnd代替,也可解决该问题的出现。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章