webbie_colt Posted July 26, 2009 Share Posted July 26, 2009 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 More sharing options...
jayjay960 Posted July 26, 2009 Share Posted July 26, 2009 Does CentOS have a package manager like apt? Have a look there if there's anything you need. Link to comment https://forums.phpfreaks.com/topic/167461-php-installation-error/#findComment-883048 Share on other sites More sharing options...
trq Posted July 26, 2009 Share Posted July 26, 2009 Does CentOS have a package manager like apt? Indeed it does, its called YUM (though you could install apt as well). Any reason your compiling yourself? Link to comment https://forums.phpfreaks.com/topic/167461-php-installation-error/#findComment-883052 Share on other sites More sharing options...
Zyx Posted July 26, 2009 Share Posted July 26, 2009 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. Link to comment https://forums.phpfreaks.com/topic/167461-php-installation-error/#findComment-883078 Share on other sites More sharing options...
webbie_colt Posted July 29, 2009 Author Share Posted July 29, 2009 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. Link to comment https://forums.phpfreaks.com/topic/167461-php-installation-error/#findComment-885595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.