20080115

compile php5 for mysql

Quote:Originally posted by teddyted
Folks, I am having the same problem.
I tried to do
find / -name mysql.h
and found out only the ones located in the PHP4-XXX /ext/mysql/libmysql/
tried those and still the same error.
Do I have to reinstall MySQL?
"Share your Experience!"
Thanks,
Teddy

I had the same problem too, on Debian Woody 3.0.

To solve it, I didn't need to reinstall MySQL - what I did was this:
apt-get install libmysqlclient10-dev
(this installs the MySQL client libraries - presumably SUSE has a similar
extra package)

And then configure PHP5, pointing to the location where the MySQL client
libraries were installed to, like so:
./configure --disable-libxml --with-mysql=/usr/include/mysql/

Then configure worked.

http://www.linuxquestions.org/questions/linux-software-2/php5-.configure-error-cannot-find-mysql-header-files-230651/