Jump to content

PHP installation error


webbie_colt

Recommended Posts

I have downloaded MySql 5.1.36 and installed it successfully.

Next I was trying to install PHP-5.2.10, on running

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

this error cropped up :

 

"configure: error: Cannot find MySQL header files under yes.

Note that the MySQL client library is not bundled anymore!"

 

Do I need to install anything else? MySQL and PHP were downloaded

as gunzipped tar archives. I have read the FAQ in the PHP

install manual and can see nothing about this particular error.

 

Where can I get the MySQL client library? I am on Centos 5.3.

Link to comment
https://forums.phpfreaks.com/topic/167461-php-installation-error/
Share on other sites

The configure script simply uses wrong path ("yes" - ?!) to the headers of the client libraries. Try to specify it manually:

 

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

 

or something like that. If the headers are in place and there is nothing wrong with ./configure script or used system apps, it should work.

Thank you everybody for the suggestions above. I tried everything possible,

did not work. After reading the MySQL readme bundled with the gunzipped

tarball, I found a line :

 

 

If you are running Linux on an x86

  machine, in most cases it is much better for you to use our

  binary.

 

So I went back to my previous yum based installation. I had removed it

using "yum remove" because of some issues with php-mysql.

 

Everything is working, fine, now.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.