Re: Apache & MySQL


Subject: Re: Apache & MySQL
From: Darron Froese (darron@fudgehead.com)
Date: Tue Feb 29 2000 - 12:44:44 MST


On Tue, 29 Feb 2000, Weston Houghton wrote:

> I spent yesterday building and installing Apache 1.3.11, MySQL 3.22.32, and
> PHP 4.0b4pl1. While I had Apache and PHP working yesterday, I went ahead and
> built MySQL. Coming back today, after getting MySQL built, I am getting the
> following when trying to start apache:
>
> [joe@boxer conf]# apachectl start
> /usr/local/apache/bin/httpd: error in loading shared libraries:
> libmysqlclient.so.6: cannot open shared object file: No such file or
> directory
> /usr/local/apache/bin/apachectl start: httpd could not be started

Weston,

It looks like it just can't find the libs created by mysql - I don't know
why you would be having problems now that you didn't have before, but I
have seen wierder things.

Basically, It may be trying to load them for PHP (as you can have mysql
and php play together). Take a look in your mysql folder (could be in
/usr/local/mysql/ - I don't know where you installed it) and
open up the lib/mysql folder inside.

You should see some files like this:

-rw-r--r-- 1 root root 17078 Sep 25 14:37 libdbug.a
-rw-r--r-- 1 root root 34692 Sep 25 14:37 libheap.a
-rw-r--r-- 1 root root 15008 Sep 25 14:37 libmerge.a
-rw-r--r-- 1 root root 156708 Sep 25 14:37 libmysqlclient.a
-rwxr-xr-x 1 root root 718 Sep 25 14:37 libmysqlclient.la
lrwxrwxrwx 1 root root 23 Sep 25 14:37 libmysqlclient.so
-> libmysqlclient.so.6.0.0
lrwxrwxrwx 1 root root 23 Sep 25 14:37 libmysqlclient.so.6
-> libmysqlclient.so.6.0.0
-rwxr-xr-x 1 root root 128891 Sep 25 14:37
libmysqlclient.so.6.0.0
-rw-r--r-- 1 root root 29346 Sep 25 14:37 libmystrings.a
-rw-r--r-- 1 root root 173770 Sep 25 14:37 libmysys.a
-rw-r--r-- 1 root root 118988 Sep 25 14:37 libnisam.a
[darron@ans mysql]$ pwd
/usr/local/mysql/lib/mysql

I just ended up copything the libmysqlclient.so.6.0.0 to /lib and then
symlinking them like this:

[darron@scully /lib]$ ls -l libmysqlclient.so*
lrwxrwxrwx 1 root root 23 Jul 15 1999 libmysqlclient.so
-> libmysqlclient.so.6.0.0
lrwxrwxrwx 1 root root 23 Jul 15 1999 libmysqlclient.so.6
-> libmysqlclient.so.6.0.0
-rwxr-xr-x 1 root root 128881 Jul 15 1999
libmysqlclient.so.6.0.0

Give that a try - it may be a gross hack but it works just fine.

--
Darron
darron@fudgehead.com



This archive was generated by hypermail 2a24 : Wed Mar 01 2000 - 00:07:12 MST