php compile error for mysql support

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
nayabinghi
Forum Newbie
Posts: 1
Joined: Mon Jul 17, 2006 8:43 am

php compile error for mysql support

Post by nayabinghi »

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() {
mysql_error()
; return 0; }

Thank you,
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

This is what you want to focus on..
/usr/bin/ld: cannot find -lmysqlclient
What is it? Is it installed? Is it in your path?
Post Reply