centos的php扩展libmcrypt扩展库的安装

1.安装libmcrypt

wget http://ncu.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz

./configure

make

make install

2. 安装mcrypt

wget http://sourceforge.net/projects/mcrypt/?source=typ_redirect

LD_LIBRARY_PATH=/usr/local/lib ./configure

make

make install

3.进入php源码下的/ext/mcrypt/

   3.1.使用phpize

   3.2../configure -with-php-config=php-confit的命令路径

   3.3.make

   3.4.make install