使用Composer安装-PHP扩展:XAMPP上的系统缺少ext-mcrypt *和ext-intl *

问题描述:

我一直在尝试安装Magento2.我确实加载了所有内容,并且使用最后一个命令"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专业用户,所以我很难理解要解决这个问题,这对我来说非常复杂. 我在*上看到了一个同样的问题,但是在这种情况下,他们正在使用MAMP.我正在使用XAMPP.他们告诉要使用MAMP的PHP和.bash_profile文件覆盖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 * 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=

最后的提示:

我将答案标记为正确,因为它通过 http://codingexplained.com/operating-systems/mac/installing-php-intl-extension-os-x-mavericks 在XAMPP上安装Php-intl

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!

看看这个答案以下的.

如果未启用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.