如何解决这个Sphinx搜索依赖问题?

时间:2013-08-06 08:18:19

标签: linux terminal installation sphinx

我正在尝试通过SSH在CentOS VPS上安装Sphinx搜索,但我仍然遇到了我似乎无法解决的依赖性问题。

这是我正在使用的操作系统:

cat /etc/redhat-release
CentOS 6.4 (Final)

uname -a
Linux host.example.com 2.6.32-042stab074.10 #1 SMP Fri Mar 1 09:18:44 MSK 2013 i686 i686 i386 GNU/Linux

这对我来说看起来我需要32位CentOS 6 rpm所以我试着用这个命令安装它:

sudo yum install http://sphinxsearch.com/files/sphinx-2.0.8-1.rhel6.i386.rpm

但是我收到以下错误消息:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.advancedhosters.com
 * extras: centos.mirror.constant.com
 * updates: mirror.lug.udel.edu
base                                                                                                                                                                      | 3.7 kB     00:00     
extras                                                                                                                                                                    | 3.5 kB     00:00     
updates                                                                                                                                                                   | 3.4 kB     00:00     
Setting up Install Process
sphinx-2.0.8-1.rhel6.i386.rpm                                                                                                                                             | 5.6 MB     00:30     
Examining /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm: sphinx-2.0.8-1.rhel6.i386
Marking /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sphinx.i386 0:2.0.8-1.rhel6 will be installed
--> Processing Dependency: libmysqlclient.so.16 for package: sphinx-2.0.8-1.rhel6.i386
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: sphinx-2.0.8-1.rhel6.i386
--> Finished Dependency Resolution
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
           Requires: libmysqlclient.so.16
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
           Requires: libmysqlclient.so.16(libmysqlclient_16)
 You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0
sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4', '8.el6')

无论我尝试什么,我似乎总是缺少libmysqlclient.so.16

我知道在哪里可以找到这个包吗?

3 个答案:

答案 0 :(得分:0)

yum install mysql-devel

应该这样做。

答案 1 :(得分:0)

安装remi存储库:

[http://blog.famillecollet.com/pages/Config-en]

Enterprise Linux 6(使用EPEL)i386或x86_64

wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

然后安装compat-mysql51

yum --enablerepo=remi install compat-mysql51

然后从rpm下载的

安装sphinx
yum localinstall sphinx-2.1.2-1.rhel6.SYSTEM-VERSION.rpm

答案 2 :(得分:0)

使用SphinxSearch泊坞窗文件(docker hub link)轻松安装SphinxSearch。

抓住它:

docker pull leodido/sphinxsearch:latest

如果您想了解如何从源代码编译(我建议将其作为安装SphinxSearch的更好模式),请查看它们 - 例如here