問題描述
我一直在嘗試安裝 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.他們告訴用 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 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 和 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!
推薦答案
看看這個答案 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 安裝 - XAMPP 上的系統缺少 ext-mcrypt * 和 ext-intl * php 擴展的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!