欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php 编译安装报错 configure: error: mcrypt.h not found. Please reinstall libmcrypt.

程序员文章站 2022-06-04 18:09:36
...
编译安装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