编译 sphinx

./configure --with-mysql

.....
ERROR: cannot find MySQL include files.

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

提示需要mysql-devel包,但是ubuntu里面没有叫这个名字的包,搜了一下,应该是这个 http://ubuntuforums.org/showthread.php?t=556317

apt-get install libmysql++-dev
make && sudo make install

安装完成 几个相关的文档 django-sphinx http://github.com/dcramer/django-sphinx http://www.davidcramer.net/code/65/setting-up-django-with-sphinx.html http://www.sphinxsearch.com/ http://www.davidcramer.net/code/117/announcing- django-sphinx-200.html http://code.google.com/p/django-sphinx/ sphinx需要启动daemon,绑定主机、端口,在共享主机下,比较难操作,似乎xapian是更好的选择。