[root@localhost mysql]# /srv/php-5.5.16/bin/phpize
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
[root@localhost mysql]# ./configure --with-php-config=/srv/php-5.5.16/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
……
……
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
[root@localhost mysql]# make
/bin/sh /usr/local/src/php-5.5.16/ext/mysql/libtool --mode=compile cc -I. -I/usr/local/src/php-5.5.16/ext/mysql -DPHP_ATOM_INC -I/usr/local/src/php-5.5.16/ext/mysql/include -I/usr/local/src/php-5.5.16/ext/mysql/main -I/usr/local/src/php-5.5.16/ext/mysql -I/srv/php-5.5.16/include/php -I/srv/php-5.5.16/include/php/main -I/srv/php-5.5.16/include/php/TSRM -I/srv/php-5.5.16/include/php/Zend -I/srv/php-5.5.16/include/php/ext -I/srv/php-5.5.16/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/php-5.5.16/ext/mysql/php_mysql.c -o php_mysql.lo
mkdir .libs
……
……
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
[root@localhost mysql]# make install
Installing shared extensions: /srv/php-5.5.16/lib/php/extensions/no-debug-zts-20121212/
[root@localhost mysql]# vim /srv/php-5.5.16/etc/php.ini
[root@localhost mysql]# /etc/init.d/php-fpm restart
Gracefully shutting down php-fpm . done
Starting php-fpm done
[root@localhost mysql]# /etc/init.d/nginx restart
Stopping nginx: [ OK ]
Starting nginx: [ OK ]
[root@localhost ~]# /srv/php-5.5.16/bin/php -m | grep mysql
mysql
mysqli
mysqlnd
pdo_mysql