PDA

View Full Version : Cannot find MySQL header files under yes


maz00
December 11th, 2007, 04:37 PM
Hi all,

I'm trying to configure Ubuntu for the first time (and haven't touched *nix for 3 years now) and surprise, I'm running into problems :)

I've install mysql using apt-get install mysql (which works)
I've downloaded the source for apache2 and installed it (works)
I've downloaded the source for php and installed. It worked except no mysql support. So I went back and now I'm trying to add mysql to it using --with-mysql= however, it return this error


./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/

configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

I've tried everything and still no go. This is what I have installed for mysql
ii libdbd-mysql-per 4.004-2 A Perl5 database interface to the MySQL database
un libmysqlclient15 <none> (no description available)
ii libmysqlclient15 5.0.45-1ubuntu3 MySQL database client library
un mysql-client <none> (no description available)
ii mysql-client-5.0 5.0.45-1ubuntu3 MySQL database client binaries
ii mysql-common 5.0.45-1ubuntu3 MySQL database common files
un mysql-doc-5.0 <none> (no description available)
ii mysql-server 5.0.45-1ubuntu3 MySQL database server (meta package depending on
ii mysql-server-5.0 5.0.45-1ubuntu3 MySQL database server binaries
un virtual-mysql-cl <none> (no description available)
un virtual-mysql-se <none> (no description available)


Any pointers here? what am I missing?

BTW, some sites say search for 'find / -name mysql.h' and that file doesn't exist on my computer at all.

Thx
Maz

dholbach
December 12th, 2007, 12:40 PM
sudo apt-get install libmysqlclient15-dev
maybe?

abrahamchaffin
May 14th, 2008, 07:01 PM
That worked for me -

Thanks

f3ath
July 26th, 2008, 05:36 AM
sudo apt-get install libmysqlclient15-dev
maybe?

i think sudo apt-get install libmysqlclient-dev is better, because it allows automatic library updates

gbstack
June 6th, 2011, 12:11 AM
it works well,thank you very much!

rajeshgautam
August 5th, 2011, 06:48 AM
i think sudo apt-get install libmysqlclient-dev is better, because it allows automatic library updates

This worked for me. Thanks :D

In ssx/genv2.cpp you might need to add #include <string.h> to fix an compile error of strcmp