centos 安装 libmcrypt

1,下载libmcrypt

wget https://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz

2、下载mhash(安装mcrypt需要此软件包)

wget https://acelnmp.googlecode.com/files/mhash-0.9.9.9.tar.gz

3、下载mcrypt

wget https://lcmp.googlecode.com/files/mcrypt-2.6.8.tar.gz

以上软件包下载之后,上传到/usr/local/src目录

二、安装软件包

1、安装libmcrypt

cd /usr/local/src  
tar zxvf libmcrypt-2.5.8.tar.gz  
cd libmcrypt-2.5.8
./configure
make && make install

ln -s   /usr/local/bin/libmcrypt_config   /usr/bin/libmcrypt_config
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

2、安装mhash

cd /usr/local/src
tar zxvf mhash-0.9.9.9.tar.gz
cd mhash-0.9.9.9
./configure
make && make install

3、安装mcrypt

cd /usr/local/src
tar zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8
./configure
make
make install

你可能感兴趣的:(配置)