开发者

Help setting up sphinx

开发者 https://www.devze.com 2023-01-04 14:11 出处:网络
ok I downloaded sphinx-0.9.9.tar.gz to my desktop I extracted to a folder called sphinx on my desktop.

ok I downloaded sphinx-0.9.9.tar.gz to my desktop

I extracted to a folder called sphinx on my desktop.

I run:

cd ~/Desktop/sphinx

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

alot of stuff happens.

Then I run this line

make

I get this error:

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

I am on ubuntu 10.04 I have already installed apache2, php5, mysql, mysqladmin

I have no clue what the error means.

Update

actually I noticed after I run:

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

I get this:

ERROR: cannot find MySQL include files.

Check that you do have MySQL include files instal开发者_如何学运维led. 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.


Apparently I needed to first run:

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

via the instructions on the bottom of this page


On Ubuntu 16.04 it helped to run:

sudo apt install libmysqlclient-dev
0

精彩评论

暂无评论...
验证码 换一张
取 消