码迷,mamicode.com
首页 > Web开发 > 详细

PHP5.3.3添加安装mcrypt模块

时间:2015-06-13 18:46:49      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:mcrypt

yum -y install httpd php53 php53-bcmath php53-cli php53-common php53-dba php53-devel php53-gd php53-imap php53-intl php53-ldap php53-mbstring 
php53-mysql php53-odbc64 php53-pdo php53-pgsql php53-process php53-pspell php53-snmp php53-soap php53-xml php53-xmlrpc php-pear


wget http://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmcrypt%2Ffiles%2FLibmcrypt%2F2.5.8%2F&ts=1430725959&use_mirror=ncu

wget http://downloads.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmcrypt%2Ffiles%2FMCrypt%2F2.6.8%2F&ts=1430726021&use_mirror=ncu

wget http://downloads.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmhash%2Ffiles%2Fmhash%2F0.9.9.9%2F&ts=1430726218&use_mirror=ncu
wget http://museum.php.net/php5/php-5.3.3.tar.gz



yum -y install gcc gcc-c++ make
tar zxf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
 make
make install
cd ..

tar zxf mhash-0.9.9.9.tar.gz
cd mhash-0.9.9.9
 ./configure
make
make install
cd ..

tar zxf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8
LD_LIBRARY_PATH=/usr/local/lib ./configure
make
make install
cd ..

tar zxf php-5.3.3.tar.gz
cd php-5.3.3/ext/mcrypt/
/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
make
make install

echo ‘extension=mcrypt.so‘ > /etc/php.d/mcrypt.ini
/etc/init.d/httpd reload
php -m |grep ‘mcrypt‘


本文出自 “枫林晚” 博客,请务必保留此出处http://fengwan.blog.51cto.com/508652/1661548

PHP5.3.3添加安装mcrypt模块

标签:mcrypt

原文地址:http://fengwan.blog.51cto.com/508652/1661548

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!