LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-27-2009, 11:24 AM   #1
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
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
 
Old 01-27-2009, 04:53 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Change "–with-mysql=/usr/include/mysql" to just "–with-mysql=/usr" and see if that helps.

Regards
 
Old 01-28-2009, 12:12 PM   #3
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Original Poster
Rep: Reputation: 32
Thumbs up It works now, thanks a lot!!

I swear that I had tried that, but I got no complaints this round, so thank you very much, bathory!!

For future viewers, it was indeed needed to change the configure to read like this (below); I also had to make clean before it would rerun make:



Code:
cd /usr/src/misc/php-4.4.9

make clean

./configure  --prefix=/usr/local/php_4.4.9/ --with-apxs2=/usr/local/apache_2.0.63/bin/apxs --with-mysql=/usr --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

make

make install
EDIT: This issue is SOLVED but I don't know how to mark that...

Last edited by lefty.crupps; 01-28-2009 at 12:18 PM. Reason: added, "how do I mark SOLVED?"
 
  


Reply

Tags
php4, rhel5



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile php4 as static module for apache2 keyF Linux - Software 1 09-29-2006 01:48 AM
PHP4-MySQL TehIan Linux - Software 2 06-30-2005 01:51 PM
Compile php4.3.10 IchBin Linux - Newbie 4 03-07-2005 06:42 AM
php4.3.4 w/gd compile problems deflin39 Linux - Software 11 01-19-2005 06:27 AM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration