Re: libphp5.so missing after compile php5.3.8
| From: | Rasmus Lerdorf | Date: | Thu, 15 Sep 2011 17:29:47 +0000 |
| Subject: | Re: libphp5.so missing after compile php5.3.8 | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-20105@lists.php.net to get a copy of this message | ||
On 09/15/2011 05:53 AM, Smith, Mitchell wrote:
> hi,
>
> the with-my-sql was a typo in the email.
>
> I have corrected the path to mysql.... then saw an error relating to
> mysql needing the zlib library.... so my ./configure now is:
>
> ./configure --with-mysql=/usr/bin/mysql
> --with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php
> --with-zlib-dir=/usr/local/zlib
Note that --with-mysql=/usr/bin/mysql is obviously wrong. /usr/bin/mysql
is the command-line MySQL client. --with-mysql takes the top-level
directory below which the lib and header files can be found, so in your
case you want --with-mysql=/usr
A typical set of flags for building against libmysqlclient would be:
--with-mysql=/usr
--with-pdo-mysql=/usr
--with-mysqli=/usr/bin/mysql_config
Or as Ferenc suggested, use mysqlnd
eg.
--with-mysql=mysqlnd
--with-pdo-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-mysql-sock=/var/run/mysqld/mysqld.sock
-Rasmus