LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-01-2008, 11:20 AM   #1
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 362

Rep: Reputation: 38
Configure error of PHP 5.2.6 with mysql support on RHEL 5.2 x86-64


When trying to configure php 5.2.6 with mysql support on a Red Hat Enterprise Linux 5.2 with the options below:

Code:
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs 
--enable-magic-quotes --enable-sigchild --enable-calendar 
--with-config-file-path=/usr/local/apache2/conf --with-openssl 
--with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client64/lib 
--with-mysql=/usr/include/mysql/ –with-libdir=lib64 
--with-zlib-dir
I get the following error:

Code:
... (truncated)...
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
Any help?

Thanks.

Last edited by the_gripmaster; 07-01-2008 at 03:06 PM.
 
Old 07-01-2008, 12:51 PM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Antonio, TX
Distribution: Fedora, RHEL 6, CentOS 6, Debian 6, Arch, Gentoo
Posts: 136

Rep: Reputation: 16
The first thing to do is check config.log for more information. Without seeing that I would guess that you might not have the MySQL source files in a standard place. Did you install MySQL from a package or from source?
 
Old 07-01-2008, 03:05 PM   #3
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 362

Original Poster
Rep: Reputation: 38
Quote:
The first thing to do is check config.log for more information. Without seeing that I would guess that you might not have the MySQL source files in a standard place. Did you install MySQL from a package or from source?
MySQL was installed from the bundled package of RHEL 5.2.

I guess this is a problem related to 64 bit. The exact same settings worked on 32 bit version of RHEL 5. But I need to get this working on 64 bit.

Last edited by the_gripmaster; 07-01-2008 at 03:07 PM.
 
Old 07-01-2008, 10:13 PM   #4
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
When compiling PHP on CentOS 5.2 64bit (essentially the same as RHEL 5.2) with the RPM-provided MySQL I use:

--with-mysql=/usr

Also, check that you have the mysql-devel package installed and that there is a socket file (mysql.sock) in /var/lib/mysql/
 
Old 07-02-2008, 01:03 PM   #5
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 362

Original Poster
Rep: Reputation: 38
@sleddog

Thanks A LOT buddy!!! You have saved me hours of wasted time. Thanks again to you.

--with-mysql=/usr instead of --with-mysql=/usr/include/mysql/ got it done.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing PHP-5.2.6 with Informix Support on RHEL-5 skb2005 Red Hat 4 05-23-2008 11:24 AM
PHP 5 configure error with mysql kamran_pro Linux - Software 7 08-15-2007 09:00 AM
PHP with MySQL Support not working : mysql.sock DID[DL] Linux - Software 3 11-04-2006 02:26 PM
php compile error for mysql support nayabingi Linux - Software 1 07-17-2006 11:04 AM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 01:06 AM


All times are GMT -5. The time now is 11:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration