抱歉,评论被关闭
如何解决sphinx启动失败?
错误一:/usr/local/sphinx/bin/searchd: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
ldconfig -v|grep mysql
发现加载:/usr/lib/mysql:
libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
ldd /usr/local/sphinx/bin/searchd
发现错误 libmysqlclient.so.16 => not found
解决办法:找到libmysqlclient.so.16 的库copy到/lib/ 下 就行了
错误二:上面问题解决后,启动又出现错误/usr/local/sphinx/bin/searchd: error while loading shared libraries: /lib/libmysqlclient.so.16: cannot restore segment prot after reloc: Permission denied
没有权限
解决办法:setenforce 0
本文出自 “凹凸曼” 博客,请务必保留此出处 http://www.apoyl.com/?p=1307
目前盖楼