Question

Sphinx And Mysql In Cpanel

  • Posted April 29, 2014

I Want to Install Sphinx And MYSQL Setup in Cpanel But It Shows Error OfLibs But libs Installed Already. So Best Way To Install Sphinx And Make It Run Also.

Subscribe
Share

First we need to grab the Source pacakage from Sphinxsearch download section. use te below command to get the file.

wget http://sphinxsearch.com/files/sphinx-2.0.4-release.tar.gz

now we have sphinx source package in our server.

First step is to uncompress the sphinx-2.0.4-release.tar.gz file using below command

tar -zxf 'sphinx-2.0.4-release.tar.gz

then enter into the directory sphinx-2.0.4-release

cd sphinx-2.0.4-release

Am installing sphinx in /usr/local/sphinx directory so we have to create the directory

mkdir /usr/local/sphinx

i want to install sphinx server in /usr/local/sphinx so i have to set the path while configure using -prefix option

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

we can specify sphinx to use MYSQL by adding –with-mysql to ./configure

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

if above command not able to find mysql libraries. we have to provide the libraries path

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

For installing sphinx with PostgreSQL specify lik this –with-pgsql

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

if above command not able to find pgsql libraries. we have to provide the libraries path

./configure --prefix=/usr/local/sphinx --with-pgsql=/usr/local/include/postgresql

next setp is make and make install

make
make install

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi, <br> <br>We’d be better able to help you if you could give some more information about you set up. What OS are you on? Ubuntu? CentOS? How did you attempt to install Mysql and Sphinx? What are the exact errors you are seeing?