Page 1 of 1

php compile error for mysql support

Posted: Mon Jul 17, 2006 8:53 am
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,

Posted: Mon Jul 17, 2006 8:59 am
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?