一、gcc、automake
sudo yum groupinstall "Development Tools"
sudo apt-get install build-essential
二、libxml2
sudo apt-get install libxml2-dev
sudo yum install libxml2-devel
三、OpenSSL
sudo apt-get install libssl-dev
sudo yum install openssl-devel
四、curl
sudo apt-get install libcurl4-dev
sudo yum install libcurl-devel
五、图像处理库
sudo apt-get install libgd-dev
sudo yum install gd-devel
六、Mcrypt
sudo apt-get install libmcrypt-dev
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
sudo yum install libmcrypt-devel
./configure --prefix=/usr/local/php6 --enable-opcache --enable-fpm --with-gd --with-zlib --with-jpeg-dir=/usr --with-png-dir=/usr --with-pdo-mysql=mysqlnd --enable-mbstring --enable-sockets --with-curl --with-mcrypt --with-openssl