Never mind this. I just removed the --with-lib-dir option.
This is really an annoying issue, as I run into this every time, and I continue to have to come up with different solutions. This time, I'm stuck.
I'm trying to get apache / php / mysql working.
I installed apache with no issues.
I downloaded the lastest mysql rpms as well, and install those.
So here I am installing php with these terms:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-libdir=/usr/lib/mysql --with-mysql --with-mysqli --with-mcrypt=/usr/local --with-pear=/usr/local/apache2/php --with-bz2=/usr --enable-sockets --enable-dbx --enable-dbase --with-zlib --enable-mbstring --with-curl=/usr/local/bin/
And here's what it spits out at me at the end of the configure:
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
Here's the output of ldconfig which only has one /usr listed.
ldconfig -v |grep mysql
libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
libmysqlclient_r.so.14 -> libmysqlclient_r.so.14.0.0
libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
libmysqlclient_r.so.10 -> libmysqlclient_r.so.10.0.0
libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
libmysqlclient_r.so.12 -> libmysqlclient_r.so.12.0.0
libmysqlclient.so.12 -> libmysqlclient.so.12.0.0
Need anything else from me to help? I'm pretty much totally lost on this one.