Here are some tips for those of you running #CentOS# who would like to run #SphinxSearch#, an awesome full-text search engine, in SphinxSE mode (that is, inside #MySQL#):
- Install MySQL 5.1. It supports plugins, so you don't need to recompile the entire thing to have SphinxSE. Since 5.1 is not yet the default in Centos, you can get it from the Remi repository. Read here to setup remi in yum.
- Install/upgrade mysql: "yum --enablerepo=remi install mysql-5.1.34 mysql-devel-5.1.34"
- I'm following the idea from this page. Get the mysql 5.1 sources that match the version you installed above. Unpack. Copy the sphinx-x.x.x/mysqlse directory to mysql-5.1.xx/storage/sphinx.
- In the mysql source directory, run 'sh BUILD/autorun.sh; ./configure; make'.
- Have a coffe.
- Run
'cp storage/sphinx/.libs/ha_sphinx.* /usr/lib64/mysql/plugin'.Your plugin directory may not be this one, check it in my.cnf - From mysql, as a superuser, run "INSTALL PLUGIN sphinx SONAME 'ha_sphinx.so';"
