我正在尝试在CENTOS 6.5 x86_64标准服务器上安装Sphinx Search,但遇到了问题。它抛出错误需要libmysqlclient.so.16(libmysqlclient_16)(64位)。我已经安装了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
答案 0 :(得分:3)
我注意到由于在64位CENTOS中缺少mysql依赖问题,我无法通过YUM安装。我使用以下命令从Source tarball包安装了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 install