1.下载libmcrypt 源码包 wget 2.解压libmcrypt 源码包 tar zxvf libmcrypt-2.5.7.tar.gz 3.配置编译参数 cd libmcrypt-2.5.7 ./configure 4.编译并安装libmcrypt make make install 5.下载mhash 源码包 wget 6.解压mhash 源码包 tar zxvf mhash-0.9.1.tar.gz 7.配置编译参数 cd mhash-0.9.1 ./configure 8.编译并安装lmhash make make install 9.下载mcrypt 源码包 wget 10.解压mcrypt 源码包 tar zxvf mcrypt-2.6.4.tar.gz 11.配置编译参数 cd mcrypt-2.6.4 LD_LIBRARY_PATH=/usr/local/lib ./configure 8.编译并安装mcrypt make make install