当前位置:Gxlcms > PHP教程 > php编译安装报错configure:error:mcrypt.hnotfound.Pleasereinstalllibmcrypt.

php编译安装报错configure:error:mcrypt.hnotfound.Pleasereinstalllibmcrypt.

时间:2021-07-01 10:21:17 帮助过:35人阅读

编译安装php时报错的解决方法:

错误一:configure: error: mcrypt.h not found. Please reinstall libmcrypt.

解决办法:需要安装Libmcrypt

wget http://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz
tar -zxvf libmcrypt-2.5.8.tar.gz
cd /usr/local/src/libmcrypt-2.5.8
./configure --prefix=/usr/local
make
make install

人气教程排行