Re: help - strange error message`
| From: | Peter Pentchev | Date: | Thu, 03 May 2001 12:00:13 +0000 |
| Subject: | Re: help - strange error message` | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-9089@lists.php.net to get a copy of this message | ||
On Thu, May 03, 2001 at 08:01:11AM -0400, Marc Bragg wrote:
> Hi:
>
> Installed redhat 7.0 and had multiple mysql problems, but php4 from the
> disc seemed fine. Updated mysql to 3.23.37, now it works fine, but "php"
> gives me:
>
> PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' -
> libmysqlclient.so.9: cannot open shared object file: No such file or
> directory in Unknown on line 0
>
> the file mysql.so is present in the php4 directory?
>
> Any ideas what I need to do?
You need to add the directory where libmysqlclient.so.9 lives to the
list of directories that ldconfig searches and hashes on startup.
I think on RedHat it's kept in /etc/ld.so.conf or something..
Look for a file in /etc with a name containing 'ld'; the file should
be a plaintext list of directories. Add /usr/local/lib/mysql in there,
then either reboot, or manually do 'ldconfig /usr/local/lib/mysql'
to make it also scan and index the MySQL libraries' directory.
G'luck,
Peter
--
This sentence contains exactly threee erors.