YUM安装所需开发包

yum install wget make gcc gcc-c++ bison autoconf patch \
pcre-devel zlib-devel openssl-devel net-snmp-devel \
ncurses-devel libxml2-devel bzip2-devel gd-devel libcurl-devel \
php-mysql

  

下面安装libmcrypt-2.5.8

wget http://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
make
make install

  

下载PHP7.0

wget http://am1.php.net/distributions/php-7.0.5.tar.xz
xz -d php-7.0.5.tar.xz
tar xvf php-7.0.5.tar
cd php-7.0.5

  

执行./configure配置

./configure --prefix=/usr/local/php \
--enable-fpm --enable-gd-native-ttf --enable-gd-jis-conv --enable-soap \
--enable-zip --enable-pcntl --enable-sockets --enable-mbstring --enable-xml \
--with-bz2 --with-openssl --with-iconv --with-zlib --with-curl \
--with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mcrypt \
--with-mysqli --with-pdo-mysql --enable-bcmath

  

最后安装

make
make install

  

 

posted on 2016-04-02 20:49  飞儿传媒  阅读(122)  评论(0编辑  收藏  举报
飞儿传媒