wget http://php.net/distributions/php-5.6.31.tar.gztar -zxvf php-5.6.31.tar.gzcd php-5.6.3./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-png-dir=/usr/local/libpng --with-jpeg-dir=/usr/local/jpeg --with-freetype-dir=/usr/local/freetype --with-zlib-dir=/usr/local/zlib --with-mcrypt=/usr/local/libmcrypt --with-libxml-dir=/usr/local/libxml2/ --with-iconv-dir=/usr/local/libiconv --enable-libxml --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-opcache --enable-mbregex --enable-fpm --enable-mbstring=all --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-session --with-curl --enable-ctype --enable-shared --with-gd
yum install gcc

yum install libxml2
yum install libxml2-develyum install openssl openssl-develyum -y install curl-devel
yum install libjpeg libpng freetype libjpeg-devel libpng-devel freetype-devel -y
#使用wget可以通過以下路徑下載 wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz #解壓 tar -zxvf libmcrypt-2.5.7.tar.gz #進入目錄 cd libmcrypt-2.5.7 #編譯(默認安裝到/usr/local/lib/) ./configure --prefix=/usr/local/libmcrypt #執(zhí)行安裝 make && make install 
相關文章
關閉