(1)MySQL include files... configure: error: missing include files. (2)configure: error: invalid MySQL root directory '/usr/bin'; neither bin/mysql_config, nor include/ and lib/ were found there上面两个提示都是一个错误导致的。 解决:
(1)安装libmysqlclient-dev $sudo apt-get install libmysqlclient-dev (2)查看mysql_config位置 $which mysql_config (我的是/usr/bin/mysql_config) (3)安装Sphinx $sudo ./configure --prefix=/usr/local/sphinx --with-mysql=/usr $sudo make $sudo make install附:安装及使用说明 http://acidborg.wordpress.com/2009/11/22/how-to-install-and-configure-sphinx-in-ubuntu-9-10-with-mysql-support/
未经同意禁止转载!
转载请附带本文原文地址:Ubuntu上安装Sphinx,首发自 Zjmainstay学习笔记