ubuntu install sphinx

cd /usr/local/src
wget http://sphinxsearch.com/files/sphinx-2.1.2-release.tar.gz
tar -xzvf sphinx-2.1.2-release.tar.gz
cd sphinx-2.1.2-release
./configure --prefix=/usr/local/sphinx --with-mysql --with-static-mysql 
make 
make install
# 添加到环境变量
echo export PATH=$PATH:/usr/local/sphinx/bin/ >> /etc/profile
source /etc/profile