gpt4 book ai didi

mysql - 帮助设置 sphinx

转载 作者:IT王子 更新时间:2023-10-29 00:56:52 24 4
gpt4 key购买 nike

好的,我下载了 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底部的说明

关于mysql - 帮助设置 sphinx ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3095040/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com