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

I'm building php from source.. just wondering which mysql path do I specify for --with-mysql= and --with-mysqli because whereis mysql returns:

whereis mysql

mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

Also, I installed httpd via yum (RHEL5) so I'm wondering what path to use for --with-apxs2=

whereis httpd

httpd: /usr/sbin/httpd.event /usr/sbin/httpd /usr/sbin/httpd.worker /etc/httpd /usr/lib/httpd /usr/share/man/man8/httpd.8.gz

Thanks for any replies!

share|improve this question

3 Answers 3

Assuming that you've installed mysql-devel and httpd-devel, you should be able to use:

--with-apxs2=/usr/sbin/apxs --with-mysql-lib=/usr/lib64/mysql --with-mysql-include=/usr/include

If you're building for 32 bit, drop the 64 from /usr/lib64.

share|improve this answer

If the path to apxs2 (APache eXtenSion tool) is still a problem, you should install apache2-dev.

(on Ubuntu » apache2-threaded-dev)

share|improve this answer

You will need all the -dev packages for the libraries you're compiling against. That meant mysqlclient-dev, httpd-devel amongst others.

share|improve this answer

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.