问题描述
我一直在尝试安装 Magento 2.我确实加载了所有内容,并且使用最后一个命令composer update"或composer install"我遇到了问题.
I've been trying to install Magento 2. I did load everything and with the last commands "composer update" or "composer install" I'm having problem.
Problem 1
- The requested PHP extension ext-mcrypt * is missing from your system.
Problem 2
- The requested PHP extension ext-intl * is missing from your system.
问题是我不是专业的 Mac 用户或其他任何人,所以我很难理解我需要做些什么来解决这个问题.我在 stackoverflow 上看到了一个有同样问题的主题,但在那种情况下,他们使用的是 MAMP.我正在使用 XAMPP.他们告诉用 .bash_profile 文件用 MAMP 的 PHP 覆盖 PHP.我也试过了 - 不太明白我在做什么.
The thing is I'm not a pro Mac user or anything so it's very complicated for me to understand what I need to do to resolve this. I saw a topic here at stackoverflow with the same problem but in that case they were using MAMP. I'm using XAMPP. They were telling to override PHP with MAMP's PHP with the .bash_profile file. I tried the same - didn't quite understand what I was doing.
请问,谁能帮我解决 ext-mcrypt 和 ext-intl 的问题?我什至不知道如何确定他们是否错过了.
So please, can anyone help me with solving ext-mcrypt and ext-intl stuff? I don't even know how to find out if they are missin or not.
谢谢!
这是代替 mcrypt 的内容
Here's what in place of mcrypt
[mcrypt]
; For more information about mcrypt settings see http://php.net/mcrypt-module-open
; Directory where to load mcrypt algorithms
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;mcrypt.algorithms_dir=
; Directory where to load mcrypt modes
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;mcrypt.modes_dir=
最后说明:
我将答案标记为正确,因为它通过 Laravel 需要 Mcrypt PHP 扩展 接下来我遇到了 ext-intl 的问题,要解决这个问题,请点击以下链接:http://codingexplained.com/operating-systems/mac/installing-php-intl-extension-os-x-mavericks 和 Php-intl 在 XAMPP 上的安装
I marked answer as correct as it resolved my issue with mcrypt with the link from Laravel requires the Mcrypt PHP extension next I had issue with ext-intl and to resolve this please follow these links: http://codingexplained.com/operating-systems/mac/installing-php-intl-extension-os-x-mavericks and Php-intl installation on XAMPP
我确实写了一个 文章.希望这也有帮助!
I did write an article about these issues and solution. hopefully this helps too!
推荐答案
看看这个答案 Laravel 需要 Mcrypt PHP 扩展 和 下一个.
Have a look at this answer Laravel requires the Mcrypt PHP extension and the following one.
如果未启用 mcrypt,请打开您的 php.ini
(请参阅上面我的第一个答案链接如何找到它)并搜索
If mcrypt is not enabled open your php.ini
(see my first answer link above how to find it) and search for
;extension=php_mcrypt.so
然后从该行的开头删除 ;
.其他扩展的过程相同.
then remove the ;
from the beginning of that line. Same procedure for the other extension.
这篇关于使用 Composer 安装 - php 扩展:在 XAMPP 上的系统中缺少 ext-mcrypt * 和 ext-intl *的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!