Home >Backend Development >PHP Tutorial >PHP extension "mcrypt" must be loaded.

PHP extension "mcrypt" must be loaded.

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 13:34:21752browse

安装 magento 的时候 提示错误:

PHP extension "mcrypt" must be loaded.



然后 自己 yum  install  mcypt*  结果没有找到  任何包。。。。



就找其他方式


我是用的引入新的扩展库方式。


打开网址: http://mirrors.sohu.com/fedora-epel/6/i386/ 使用 Ctrl+F 搜索关键词“epel-release” 找到当前最新的扩展包发现最新版本为:epel-release-6-8.noarch.rpm


然后执行命令:

rpm -ivh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm


会有些错误,不管他。


完成后,执行命令:

yum update


中间会有个小问题:

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

执行 :vi  /etc/yum.repos.d/epel.repo, 将文件的三处baseurl的注释取消, 三处mirrorlist注释掉。


完成后,执行命令:

yum repolist

显示如果包含:

epel                                             Extra Packages for Enterprise Linux 6 - i386  

表明成功安装了扩展库。


扩展库安装好了后  就可以直接用yum安装了。



执行命令:
yum install php-mcrypt


OK了。







Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn