I downloaded php binaries and tried to build the same using following command.
./configure --with-apxs2=/usr/sbin/apxs --with-mysql
But i'm getting the error related to mysql client library.
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 MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
I confirmed that I have mysql client installed.
$ yum list mysql*
Loaded plugins: rhnplugin, security
Installed Packages
MySQL-client-community.x86_64 5.1.48-1.rhel5 installed
MySQL-server-community.x86_64 5.1.48-1.rhel5 installed