Re: installation problem

From: Date: Wed, 05 Sep 2001 20:31:11 +0000
Subject: Re: installation problem
References: 1 2  Groups: php.install 
Request: Send a blank email to php-install+get-4213@lists.php.net to get a copy of this message
Thanks for your quick response. I knew is was something simple like this that I just wasn't getting right. This is daft, but when I ran "ldconfig" on the command line in the /etc directory earlier today, nothing seemed to happen, and is it "ldconfig" or "run ldconfig". Again, thanks! Lawonna In article <Pine.LNX.4.33.0109051302120.1177-100000@rasmus.php.net>, "Rasmus Lerdorf" <rasmus@php.net> wrote: >> I'm getting a syntax error that says apache can't load libphp4.so into >> the server because it cannot load libmysqlclient.so.10 as a shared >> object file. libmysqlclient.so.10 is on the system at >> /usr/local/mysql/libmysqlclient.s0.10, but I don't know how to tell >> Apache where to find it. Can anyone help? > Add /usr/local/mysql to your /etc/ld.so.conf file and run ldconfig >> I added this line to /usr/local/php/sapi/apache "EXTRA_LIBS=-L. -.php4 >> -lgdbm -L/usr/local/mysql/libs/mysql -Lmysqlclient", but that didn't >> solve the problem. > -Lmysqlclient is meaningless. It actually tells it to look for static > libaries in a directory named mysqlclient. -L has no effect on shared > library loading. > >> I also added "/usr/local/mysql/libs/mysql" to my /etc/lo.so.conf file, >> but that didn't do anything either. > But you stated above that libmysqlclient.so was in /usr/local/mysql, so > that is the directory you need to add. And unless you ran ldconfig > after making the change it wouldn't have done anything. >> I've been configuring PHP with "--with-apxs=/usr/local/apache/bin/apxs" >> rather than "--with-apache=/usr/local/apache". Does that make any >> difference? I also specified the directory for MySQL as >> "--with-mysql=/usr/local/mysql". > No difference wrt. this problem. --with-apache builds PHP as a static > library that needs to be linked statically into your httpd binary. > Whereas --with-apxs builds PHP as a shared library that can be loaded > into Apache dynamically using a LoadModule line in Apache's httpd.conf > file. -Rasmus

« previous php.install (#4213) next »