Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot find MySQL header files...

Status
Not open for further replies.

csbdeady

Programmer
Joined
May 18, 2002
Messages
119
Location
GB
Hi

I have installed MySQL 4.0 through RPMs from the mysql.com web site.

Now when I use ./configure with PHP, the line:

--with-mysql=/usr/bin/mysql

The configure starts correctly but goes cold turkey on me with:

configure error: Cannot find MySQL header files under /usr/bin/mysql

I am pretty sure that the RPM installed to /usr/bin/mysql .

Regs
-Colin
 
Did you install the mysql-devel package?

Without that, the libraries and header files will not be available to PHP.

Also, the path component of "--with-mysql" is not asking for the path to the mysql command-line application. It's expecting the path to file those libraries and header files. I generally use "--with-mysql=/usr" and let the configure script find it for itself.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top