wget http://php.net/distributions/php-5.6.31.tar.gz
tar
-zxvf php-5.6.31.tar.gz
cd
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-devel
yum install
openssl openssl-devel
yum -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
#
执行安装
make
&& make
install
相关文章