mysql – 帮助设置sphinx

好的,我将sphinx-0.9.9.tar.gz下载到我的桌​​面

我在桌面上解压缩到一个名为sphinx的文件夹.

我跑:

cd ~/Desktop/sphinx

./configure –prefix=/usr/local/sphinx
–with-mysql

发生了很多事情.

然后我跑这条线

make

我收到此错误:

make: *** No targets specified and no
makefile found. Stop.

我在ubuntu 10.04上我已经安装了apache2,php5,mysql,mysqladmin

我不知道错误意味着什么.

更新

实际上我跑完后注意到:

./configure –prefix=/usr/local/sphinx
–with-mysql

我明白了:

ERROR: cannot find MySQL include
files.

Check that you do have MySQL include
files installed. The package name is
typically ‘mysql-devel’.

If include files are installed on your
system, but you are still getting this
message, you should do one of the
following:

1) either specify includes location
explicitly, using
–with-mysql-includes; 2) or specify MySQL installation root location
explicitly, using –with-mysql; 3) or
make sure that the path to
‘mysql_config’ program is listed in
your PATH environment variable.

To disable MySQL support, use
–without-mysql option.

解决方法:

显然我需要先运行:

sudo aptitude install libmysql++-dev
libmysqlclient15-dev checkinstall

通过this page底部的说明

上一篇:就这?腾讯云高工熬夜手写‘Java微服务学习笔记‘也就让我月薪涨3k


下一篇:php中的文章搜索引擎