0

我正在尝试通过 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

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

4

3 回答 3

0
yum install mysql-devel

应该这样做。

于 2013-08-06T10:45:40.697 回答
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
于 2013-10-22T12:13:36.583 回答
0

使用 SphinxSearch docker 文件(docker hub 链接)轻松安装 SphinxSearch。

抓住它:

docker pull leodido/sphinxsearch:latest

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

于 2015-06-19T16:04:41.317 回答