Cannot compile PHP4 on RHEL5, 'mysql headers not found'
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Cannot compile PHP4 on RHEL5, 'mysql headers not found'
NOTE: Thread is SOLVED, see last post.
Trying to migrate our current older RH box to a new install, but we require Apache2 and PHP4 for whatever reason with the way the sites etc are set up. MySQL and other software is OK'd to be newest release.
I was able to install from source the Apache2.0 without issues. However, I cannot compile successfully the PHP 4.4.9. Anyone able to assist me? I've been all over the web looking for prebuild binaries but not having much luck. My mysql-devel packages are installed.
I've tried changing the --with-mysql=/usr/include/mysql part (to point elsewhere) but its not been successful either.
Code:
[root@machine php-4.4.9]# yum install mysql-devel mysql
Loaded plugins: dellsysidplugin, rhnplugin, security
Setting up Install Process
Parsing package install arguments
Package mysql-devel-5.0.45-7.el5.i386 already installed and latest version
Package mysql-5.0.45-7.el5.i386 already installed and latest version
Nothing to do
[root@machine php-4.4.9]# ./configure –prefix=/usr/local/php_4.4.9/ –with-apxs2=/usr/local/apache_2.0.63/bin/apxs –with-mysql=/usr/include/mysql –with-gd –with-jpeg-dir=/usr/lib –with-curl –with-openssl –with-zlib –enable-sockets –enable-memory-limit –with-dom –with-dom-xslt –with-dom-exslt –with-ncurses –enable-dbx –enable-dio –enable-experimental-zts –enable-ftp
…
…
…
…
…
checking for int8… no
checking base type of last arg to accept… socklen_t
checking return type of qsort… void
configure: error: Cannot find MySQL header files under /usr/include/mysql
[root@machine php-4.4.9]#
Last edited by lefty.crupps; 03-12-2009 at 02:12 PM.
Reason: Problem SOLVED, see last post
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.