咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

centOS下yum php环境时No package php-mcrypt

2016-07-11 04:34:07 12117次

错误描述:

#yum install php-mcrypt

Setting up Install Process

No package php-mcrypt available.
Error: Nothing to do

我们会看到centos yum从仓库中根本找不到这几个包。

 

yum  install epel-release  //扩展包更新包

# yum install php-mcrypt

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

 

 编辑vi /etc/yum.repos.d/epel.repo,如下

#baseurl
mirrorlist
改成
baseurl
#mirrorlist

 

#yum install php-mcrypt


首页
最新活动
个人中心