I'm having trouble installing PHP's PDO_MySQL extension on a Mac OS X 10.5.8 server. The problem comes from configuration.
I have tried taking the steps outlined in this answer but can only get so far as the command $ ./configure --with-pdo-mysql=/usr/local/mysql
. When I run this, I get the following error:
configure: error: Try adding --with-zlib-dir=. Please check config.log for more information.
I don't know what this means, and I can't seem to find much information on the Internet about it, other than "zlib for Mac OS X: zlib is already included as part of Mac OS X" -- which to me means I don't have to install anything new.
However, I don't know where the zlib directory is that I should be putting here. Does anyone know where I would find this directory?
Edit
Update 2
After including /usr
as the zlib-dir, I am getting the following error:
checking for mysql_query in -lmysqlclient... no
checking for mysql_query in -lmysqlclient... (cached) no
configure: error: PDO_MYSQL configure failed. Please check config.log for more information.
This was a little more dramatic in a different version (1.0.2):
checking for mysql_query in -lmysqlclient... no
configure: error: mysql_query missing!?
I've included the config.log in a new Pastebin.
ls /usr/lib/libz*
ls /usr/include/z* – Mark Adler Mar 14 '12 at 19:29