我有一个安装了Magento 2.1.7的Debian VM。现在,为了在本地获取文件并能够使用IDE(我使用JetBrains的phpStorm)通过保存将文件从本地同步到远程,我需要在本地也包含Magento文件。
事实是,我同步的唯一路径是:
public ArrayList<String> getweakAreaCount() {
ArrayList<String> label = new ArrayList<>();
for (int i = 0; i < weakAreaList.size(); i++)
label.add(weakAreaList.get(i).getTopicNm());
return label;
}
xAxis.setValueFormatter(new IndexAxisValueFormatter(getweakAreaCount));
但是无论如何,将所有文件和供应商都放在本地可以使我能够在本地而不是在VM中进行更改,这样我组织起来会更好。
当我想安装Magento 2文件时出现问题。我曾经在其他计算机上执行过/opt/bitnami/apps/Magento/htdocs/app
,这些计算机都已完成所有设置,并且所有依赖项均已安装,没有任何问题。
但是我现在要在机器上进行设置,从现在开始我将需要进行设置。
基本上,当我运行composer install时,我需要在其中安装依赖项:
computer install
据我的理解和阅读,我需要在文件夹中有一个php.ini,它告诉作曲家如何获取依赖关系。我没有找到文件,我找到了两个文件:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for braintree/braintree_php 3.7.0 -> satisfiable by braintree/braintree_php[3.7.0].
- braintree/braintree_php 3.7.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 2
- Installation request for magento/framework 100.1.9 -> satisfiable by magento/framework[100.1.9].
- magento/framework 100.1.9 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
- Installation request for magento/magento2-base 2.1.9 -> satisfiable by magento/magento2-base[2.1.9].
- magento/magento2-base 2.1.9 requires ext-intl * -> the requested PHP extension intl is missing from your system.
Problem 4
- Installation request for magento/module-shipping 100.1.3 -> satisfiable by magento/module-shipping[100.1.3].
- magento/module-shipping 100.1.3 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 5
- Installation request for magento/product-community-edition 2.1.9 -> satisfiable by magento/product-community-edition[2.1.9].
- magento/product-community-edition 2.1.9 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 6
- braintree/braintree_php 3.7.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- magento/module-braintree 100.1.6 requires braintree/braintree_php 3.7.0 -> satisfiable by braintree/braintree_php[3.7.0].
- Installation request for magento/module-braintree 100.1.6 -> satisfiable by magento/module-braintree[100.1.6].
To enable extensions, verify that they are enabled in your .ini files:
- C:\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
我想一旦更改模式,这两个文件就是magento使用的文件,那么,我是否最终需要更改这两个文件?
我该如何解决?
答案 0 :(得分:0)
我设法通过修改php.ini
中的C:\php.ini
文件来解决此问题。我找不到它,但是一旦找到,就摆脱掉对您需要的部分的评论。