Problem with httpd after mysql update

DhoTjai

Verified User
Joined
Apr 23, 2006
Messages
80
Location
Netherlands
Hello all,

I have a problem after updating mysql.
I can not start httpd

I am getting this:
[root@link ~]# /sbin/service httpd restart 2>&1
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 81 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server: libmysqlclient.so.15: cannot open shared object file: No such file or directory
[FAILED]

I have also tried to run ./build php n
Which gives me this in config.log
configure:62428: checking for mysql_error in -lmysqlclient
configure:62447: gcc -o conftest -g -O2 -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr/local/lib -L/usr$
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 62436 "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; }


How can I fix this?

Help appreciated!

With kind regards,

DhoTjai
 
Hello

how did you update mySQL?

Did you tried to comment out the line 81 of /etc/httpd/conf/httpd.conf ?
 
I used my provider's update script, that apparently did not work.
So I've used custombuild, to update mysql.
It's all fixed now.

I think it's because it installed i386, while I have a 64bit processor. So I needed x86_64 .
That's why it said incompatiable in the logs...
 
Back
Top