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

No package libmcrypt available.

程序员文章站 2022-10-24 16:33:08
Centos安装PHP时,安装php依赖包时yum install libmcrypt libmcrypt-devel,报错如下: 然后编译的时候,又报错: 解决方法:yum install epel-release //扩展包更新包 ......

centos安装php时,安装php依赖包时yum install libmcrypt libmcrypt-devel,报错如下:

no package libmcrypt available.
no package libmcrypt-devel available.
error: nothing to do

然后编译的时候,又报错:

checking for mcrypt support... yes
configure: error: mcrypt.h not found. please reinstall libmcrypt.

解决方法:yum  install epel-release  //扩展包更新包