Configure: error: mcrypt.h not found. Please reinstall libmcrypt.

根据提示 :

yum install libmcrypt libmcrypt-devel

但提示 没有找到  libmcrypt libmcrypt-devel

无奈只有用源码编译

 

tar -zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
make
make install
libmcrypt默认安装在/usr/local

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

tar -zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8
export LD_LIBRARY_PATH=/usr/local/lib
./configure
make
make install
说明:由于在配置Mcrypt时,会找不到libmcrypt的链接库,导致无法编译,因为Libmcrypt的链接库默认在/usr/local/lib文件夹下。因些在配置mcrypt时要加入LD_LIBRARY_PATH=/usr/local/lib 导入键接库
(在 Mac OS下测试不需要LD_LIBRARY_PATH,配置时说明: ./configure CFLAGS=”-I/usr/include/malloc -L/usr/local/lib”才可以)

 

文件下载地址:

链接: http://pan.baidu.com/s/1gdityan 密码: m5u7

 

未经允许不得转载:开心乐窝-乐在其中 » Configure: error: mcrypt.h not found. Please reinstall libmcrypt.

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏