LinuxQuestions.org
Help answer threads with 0 replies.
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 05-09-2007, 06:58 PM   #1
dfw123
Member
 
Registered: Apr 2007
Posts: 45

Rep: Reputation: 15
php error


Hello!

I have mysql5 on FC6. I am installing php5.1.6 and do this

./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --with-gd --with-zlib-dir=/home/david/php516/ext/zlib

output error:

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... /var/lib/mysql/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

How do I fix this? Thanks.
 
Old 05-09-2007, 08:23 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Just a guess, but try pointing to your mysql base installation directory (e.g., “--with-mysql=/opt/mysql”).
 
Old 05-10-2007, 05:01 PM   #3
dfw123
Member
 
Registered: Apr 2007
Posts: 45

Original Poster
Rep: Reputation: 15
I tried this --with-mysql=/usr/lib/mysql, still the same error

I use find, output is:
/usr/bin/mysql
/usr/lib/mysql
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBD/mysql
/usr/share/mysql
/var/lib/mysql
/var/lib/mysql/mysql

I use add/remove GUI to install mysql.
Where can I find the mysql basedir?
 
Old 05-10-2007, 06:10 PM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
I think the problem refers not to the place where you have installed the MySQL binaries, but the place where the MySQL [f]header files[b] (this are code files) are for MySQL clients to use when compiling/building.
 
Old 05-10-2007, 07:27 PM   #5
dfw123
Member
 
Registered: Apr 2007
Posts: 45

Original Poster
Rep: Reputation: 15
what do I do next?
 
Old 05-10-2007, 08:19 PM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
I'm not sure what to do on FC. I think you have to install a "mysql-devel" package. On Ubuntu (and debian) you have to install the "libmysqlclient15-dev" package. After you have installed the headers try to configure php again.

Last edited by eantoranz; 05-10-2007 at 08:21 PM.
 
Old 05-14-2007, 02:38 PM   #7
dfw123
Member
 
Registered: Apr 2007
Posts: 45

Original Poster
Rep: Reputation: 15
I have mysql-devel installed still same error.

anyone can help?
 
  


Reply



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
PHP5 Upgrade Error: Missing Dependency: php = 4.3.x is needed by package php-pear vsystems Linux - Server 1 05-02-2007 07:17 AM
Error compiling php 5.1 and also a fantastico error arachn1d Linux - Software 0 02-19-2006 04:52 PM
PHP parse error in config.inc.php.in Confusedious Linux - Software 2 11-03-2005 05:08 AM
PHP Error newuser455 Linux - Software 1 08-03-2005 12:54 PM
PHP error? Or MySQL error? DoobyWho Linux - General 5 04-09-2003 10:31 AM

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

All times are GMT -5. The time now is 08:14 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