Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to install sphinx on my centOS 5.6 x64

if I do yum install sphinx I get only 0.9,9 version, and I'd like to install 2.0.1-beta

so I followed the instructions in their documentation and I downloaded source tarball and run

./configure --with-mysql

I am getting an error that cannot find mysql include files

so I found out I need to install mysql-deve (yum install mysql-devel) but as it turned out I already had it.

so I tried to locate my mysql include files and after some digging I found out how to get the info where it is located

$ mysql_config --include

so this gives me:

-I/usr/include/mysql

so I repeated the exercise like:

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

wich gave me this:

configure: error: invalid MySQL root directory '/usr/include/mysql'; neither bin/mysql_config, nor include/ and lib/ were found there

I tred without trailing slash too

so what am I to do?

please help!

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Yes, the configuration script need to know the prefix where MySQL is installed and in your case that's /usr, so you can use the following command:

./configure --with-mysql=/usr --with-mysql-includes=/usr/include/mysql

Also, you may need another devel packages, not only mysql-devel.

EDIT: BTW have you noticed that there's a 64bit RPM package of Sphinx 2.0.1-beta for RHEL/CentOS 5? It's on the downloads page.

share|improve this answer
    
Your suggestion gives me: ...... ERROR: cannot find MySQL include files. :( –  DS_web_developer Oct 5 '11 at 16:56
    
Are you sure that you have mysql-devel installed? I added more command line options to my answer above (and some additional information). –  Vladimir Blaskov Oct 5 '11 at 17:13
    
Yes I msut be really blind! I installed that rpm with no problems, it is working now! thanx –  DS_web_developer Oct 5 '11 at 17:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.