编译安装mysql出错mcrypt.h not found. Please reinstall libmcrypt

需要安装libcrytpt

 

方法一:

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
mkdir -p /usr/local/libmcrytpt
./configure prefix=/usr/local/libmcrytpt/
make && make install

 

 

方法二(一定可以成功):

 

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

 

mkdir /usr/local/libmcrypt

 

gunzip -c libmcrypt-2.5.8.tar.gz | tar xf -

 

cd libmcrypt-2.5.8

 

./configure –disable-posix-threads

 

make && make install

 

你可能感兴趣的:(Install)