使用 Composer 安装 - XAMPP 上的系统缺少 ext-mcrypt

时间:2023-01-20
本文介绍了使用 Composer 安装 - XAMPP 上的系统缺少 ext-mcrypt * 和 ext-intl * php 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试安装 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模板网!

上一篇:当产品页面 Magento 上的数量改变时自动更新价格 下一篇:Magento - 覆盖 Adminhtml 块

相关文章

最新文章