ubuntu上安装sphinx报错

安装mysql的时候,ubuntu系统会自动把文件分在各自的目录
/usr/bin/mysql 
/etc/mysql 
/usr/lib/mysql

安装sphinx的时候

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

会报错

configure: error: invalid MySQL root directory '/etc/mysql'; neither bin/mysql_config, nor include/ and lib/ were found there

google发现,是少一安装包,安装下面包

shell$ sudo apt-get install libmysqlclient-dev

后,再执行

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

编译成功!


你可能感兴趣的:(linux,sphinx,mysql,ubuntu)