我试图在CentOS6.5 x86_64标准服务器上安装狮身人面像搜索,但遇到了一个问题。它抛出错误需要libmysqlclient.so.16(libmysqlclient_16)(64bit).我已经安装了libmysqlclient_16。请在这方面提供任何帮助。
下面是在命令行中定位libmysql命令的结果
# locate libmysql
/home/cpeasyapache/src/php-5.4.27/ext/mysqli/mysqli_libmysql.h
/home/cpeasyapache/src/php-5.4.27/ext/mysqli/tests/mysqli_stmt_send_long_data_packet_size_libmysql.phpt
/home/cpeasyapache/src/php-5.4.27/ext/mysqlnd/mysqlnd_libmysql_compat.h
/home/cpeasyapache/src/php-5.4.27/ext/pdo_mysql/tests/pdo_mysql___construct_options_libmysql.phpt
/usr/lib64/libmysqlclient.so
/usr/lib64/libmysqlclient.so.16
/usr/lib64/libmysqlclient.so.16.0.0
/usr/lib64/libmysqlclient.so.18
/usr/lib64/libmysqlclient.so.18.0.0
/usr/lib64/libmysqlclient_r.so
/usr/lib64/libmysqlclient_r.so.18
/usr/lib64/libmysqlclient_r.so.18.0.0
/usr/lib64/mysql/libmysqlclient.a
/usr/lib64/mysql/libmysqlclient.so
/usr/lib64/mysql/libmysqlclient_r.a
/usr/lib64/mysql/libmysqlclient_r.so
/usr/lib64/mysql/libmysqlservices.a
/usr/local/cpanel/3rdparty/lib64/mariadb/libmysql.so
/usr/local/cpanel/3rdparty/lib64/mariadb/libmysqlclient.a
/usr/local/cpanel/3rdparty/lib64/mariadb/libmysqlclient.so
/usr/local/cpanel/3rdparty/lib64/mariadb/libmysqlclient_r.so
/usr/local/cpanel/3rdparty/lib64/mysql/libmysqlclient.so.15
/usr/local/cpanel/3rdparty/lib64/mysql/libmysqlclient.so.15.0.0
/usr/local/cpanel/3rdparty/lib64/mysql/libmysqlclient_r.so.15
/usr/local/cpanel/3rdparty/lib64/mysql/libmysqlclient_r.so.15.0.0
/usr/local/cpanel/3rdparty/php/54/include/php/ext/mysqli/mysqli_libmysql.h
/usr/local/cpanel/lib64/libmysqlclient.so.16
/usr/local/include/php/ext/mysqli/mysqli_libmysql.h
/usr/local/include/php/ext/mysqlnd/mysqlnd_libmysql_compat.h下面是安装结果
# yum install http://sphinxsearch.com/files/sphinx-2.1.7-1.rhel6.x86_64.rpm
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.supremebytes.com
* extras: mirrors.centarra.com
* updates: mirror.oss.ou.edu
Setting up Install Process
sphinx-2.1.7-1.rhel6.x86_64.rpm | 10 MB 00:06
Examining /var/tmp/yum-root-Aoxjte/sphinx-2.1.7-1.rhel6.x86_64.rpm: sphinx-2.1.7-1.rhel6.x86_64
Marking /var/tmp/yum-root-Aoxjte/sphinx-2.1.7-1.rhel6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sphinx.x86_64 0:2.1.7-1.rhel6 will be installed
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Processing Dependency: libodbc.so.2()(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Processing Dependency: libpq.so.5()(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Running transaction check
---> Package postgresql-libs.x86_64 0:8.4.20-1.el6_5 will be installed
---> Package sphinx.x86_64 0:2.1.7-1.rhel6 will be installed
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed
--> Finished Dependency Resolution
Error: Package: sphinx-2.1.7-1.rhel6.x86_64 (/sphinx-2.1.7-1.rhel6.x86_64)
Requires: libmysqlclient.so.16()(64bit)
Error: Package: sphinx-2.1.7-1.rhel6.x86_64 (/sphinx-2.1.7-1.rhel6.x86_64)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest发布于 2014-04-21 09:55:14
我注意到,由于缺少64位CENTOS中的mysql依赖问题,我无法通过YUM进行安装。我使用以下命令安装了Source包中的Sphinx:
# wget http://sphinxsearch.com/files/sphinx-2.1.7-release.tar.gz
# tar -zxf 'sphinx-2.1.7-release.tar.gz'
# cd sphinx-2.1.7-release
# mkdir /usr/local/sphinx
# ./configure --prefix=/usr/local/sphinx
# make
# make installhttps://stackoverflow.com/questions/23181776
复制相似问题