Re: libphp5.so missing after compile php5.3.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




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


[PHP Home]     [PHP on Windows]     [Programming PHP]     [Kernel Newbies]     [Why pay for online dating?]     [PHP Users]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]     [PHP Books]

  Powered by Linux