Re: compiling php with mysql ver3 or 4
| From: | Rachel Rodriguez | Date: | Tue, 01 Jun 2004 01:22:48 +0000 |
| Subject: | Re: compiling php with mysql ver3 or 4 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187314@lists.php.net to get a copy of this message | ||
--- Richard Kurth <rdkurth@directphp.com> wrote:
> Hello ,
>
> How can I compile PHP so that it does not mater
> what version of
> mysql is installed.
> If I compile it for mysql 3.X and then upgrade
> mysql to ver 4
> PHP will not install.
> I get error while loading shared libraries:
> libmysqlclient.so.12: cannot open shared object file
>
> this is how I am compiling php It is being
> compiled into Apache not
> as a DSO
>
> ./configure --prefix=/usr/php --with-mysql=/usr/
> --with-config-file-path=/usr/conf
> --with-exec-dir=/usr/apache/bin --disable-debug
> --enable-safe-mode
> --enable-magic-quotes --enable-debugger
> --enable-track-vars --with-ftp --enable-sockets
> --enable-ftp --with-apache=../apache
> make
> make install
>
I don't have a Linux box where I can test out my
suggestion to you, but here is what you can try:
1. from your php directory: rm config.cache
2. after that command, run: make clean
That should take care of the previous PHP
installation.
Now try running your ./configure, make, and make
install as you have listed above.
By the way, your "--with-mysql=/usr/" does not look
like a complete path to your MySQL installation. Of
course, I cannot say for sure... you know better than
I do where it is installed and what the directory is
called.
=====
~Rachel
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/