[SWLUG] Upgrading PHP with MySQL on RedHat

Terry John terry.john at bbc.co.uk
Thu Jan 14 12:24:35 UTC 2010


I'm trying to upgrade PHP on a RedHat box. I've downloaded the PHP and
can get it to compile but not with the MySQL option.

The existing phpinfo() give the configure directive

--with-mysql=shared,usr

But I can't get that to work. I've tried various other directories but
they all come back with the same error

checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient_r... no
checking for mysql_errno in -lmysqlclient_r... no
configure: error: Try adding --with-zlib-dir=<DIR>. Please check
config.log for more information.

I've tried guessing 

--with-zlib-dir=usr/lib/mysql

among others but the error is still the same (Without 'Try adding
--with-zlib-dir=<DIR>')

The config.log file isn't much use, there's less info than on screen.

I've got this which is good but I'm not in a position to put a new MySQL
on the box at the moment.

http://teklimbu.wordpress.com/2007/10/08/configuring-apache-2x-with-php-
5x-and-mysql-5x/

Thanks

Terry


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/swlug/attachments/20100114/1b40cd93/attachment.html>


More information about the Swlug mailing list