linux - 如何解决 Sphinx 搜索依赖问题?

标签 linux terminal installation sphinx

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

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

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

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

最佳答案

yum install mysql-devel

应该这样做。

关于linux - 如何解决 Sphinx 搜索依赖问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18075017/

相关文章:

linux - 命令 tr 上下提取

r - 无法安装动物园包 (R)

ruby-on-rails - 为什么 bundle install 不允许 pg gem 完全安装?

ruby - gem 安装失败,显示 "ruby: invalid option -H (-h will show valid options) (RuntimeError)"

c - 是否可以更改虚拟内存页面大小?

linux - shell 参数名称后带有井号和百分号的语法

linux - 声音在 tcl/tk 中只播放一次(snack、pulseaudio、Linux)

linux - 终端中命令输出的说明

c - linux终端在C程序中向上翻页和向下翻页

java - Eclipse 项目是否编译?