Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-17-2006, 09:00 AM   #1
Registered: Jul 2004
Location: Atlanta , United States
Distribution: CentOS 5
Posts: 31

Rep: Reputation: 15
php compile error for mysql support

Hey guys,

I was compiling php 5.1.4 and during the process of adding mysql support I get a the error below. I have search quite a bit and can't seem to find a resolution. Any help from you all will be greatly appreciated.

/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 58781 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();

int main() {
; return 0; }

Thank you,
Old 07-17-2006, 10:04 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
/usr/bin/ld: cannot find -lmysqlclient
I think this is where your error is. It appears that the mysqlclient libraries cannot be located. When you configured php, did you give the right location for the mysql libs?


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
php <-> MySql support boardtc Mandriva 8 04-06-2005 01:05 AM
Apache 2.0.52 PHP 5.0.2 MySQL 5.0.2 co-compile GinEric Linux - Software 4 02-27-2005 08:27 PM
Compile PHP with IMAP support ultrafluke Linux - Software 1 12-03-2004 12:04 PM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 12:06 AM
Compile PHP w/ XML Support (RedHat) robadawb Linux - Software 0 04-07-2003 01:02 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:57 AM.

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