Re: [PHP-INSTALL] libphp5.so missing after compile php5.3.8

[email protected] (Rasmus Lerdorf)
Newsgroups php.install
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.