我正在使用laravel框架。 laravel项目运行要求是MCrypt。我试图安装,但我面临错误
发送HTTP请求,等待响应... 404 Not Found 2014-09-18 13:25:27错误404:未找到。
yum install php-mcrypt
加载的插件:fastermirror
从缓存的主机文件加载镜像速度
base:centos.someimage.com
extras:mirrors.mit.edu
更新:mirror.lug.udel.edu
没有包php-mcrypt可用。
错误:无事可做
答案 0 :(得分:5)
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -ivh epel-release-7-5.noarch.rpm
yum install php-mcrypt*
答案 1 :(得分:1)
您可能需要安装EPEL存储库。
http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
然后尝试安装mcrypt扩展
以root身份打开终端(su)
wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
rpm -ivh epel-release-7-0.2.noarch.rpm
yum update
yum install php-mcrypt *
答案 2 :(得分:0)
wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm
sudo yum install epel-release-7-1.noarch.rpm
yum install php-mcrypt*
restart Apache
sudo service httpd restart