> 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


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to