0

我正在安装 Sylius。在我的命令提示符下我做了

composer create-project -s dev sylius/sylius

我收到此错误消息:

C:\wamp\www\Symfony>composer create-project -s dev sylius/sylius
Installing sylius/sylius (dev-master 18d981683430c0afd1a102b6fc67f8ffeaabddc0)
  - Installing sylius/sylius (dev-master master)
    Cloning master

Created project in C:\wamp\www\Symfony\sylius  
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 symfony/icu 1.2.x-dev -> satisfiable by symfony/icu[1.2.x-dev].
  - symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 2
  - Installation request for instaclick/php-webdriver 1.0.x-dev -> satisfiable by instaclick/php-webdriver[1.0.x-dev].
  - instaclick/php-webdriver 1.0.x-dev requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
  - Installation request for instaclick/php-webdriver dev-master -> satisfiable by instaclick/php-webdriver[dev-master].
  - instaclick/php-webdriver dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 4
  - symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
  - symfony/symfony 2.3.x-dev requires symfony/icu ~1.0 -> satisfiable by symfony/icu[1.2.x-dev].
  - Installation request for symfony/symfony 2.3.x-dev -> satisfiable by symfony/symfony[2.3.x-dev].

我尝试了什么:

  1. php composer.phar self update
  2. php composer.phar install
  3. 删除 sylius 目录
  4. 使用 create-project 命令重新安装 sylius
  5. 全新安装 Symfony 2.3.4 并重新安装 sylius
  6. 做了第一个答案中所说的:启用扩展卷曲和国际
  7. 使用函数 get_loaded_extension() 确认 curl 和 intl 已加载。嗯,已经加载了
4

3 回答 3

1

看起来您需要安装两个 PHP 扩展才能使其工作:curlintl(它提供了 symfony/icu 所需的 lib-icu)。由于您使用的是 Windows,因此我推荐有关如何在 Windows 系统上安装扩展的官方指南。您可以在此处intl的 PECL 存储库中找到该扩展。

curl应该已经安装在您的 WAMP 上,但默认情况下禁用。有关如何启用它的说明,请参阅此问题的最佳答案。

于 2013-09-17T09:02:20.960 回答
1

WAMP 有两个php.ini文件,一个用于 apache,一个用于 CLI。当您单击 php 模块中的 WAMP 托盘图标时,您只能看到为 apache 启用的模块,因此启用和禁用模块仅对php.ini.

尝试启用CLI的配置,curl其中是 CLI 的配置(顺便说一句,apache 的配置放在 中)。intlX:\path\to\wamp\bin\php\php.iniX:\path\to\wamp\bin\apache\bin\php.ini

于 2013-12-25T18:00:48.990 回答
0

Sylius 现在已经发布了最新版本 v1.0.0,我已经在博客中介绍了它来安装它。这是来源:https ://www.cloudways.com/blog/install-sylius-ecommerce-framework/

您只需要在 SSH 中运行以下 cammands 或将安装 Terminal Sylius

  • $ composer create-project -s beta sylius/sylius-standard project
  • $ cd project
  • $ npm install
  • $ npm run gulp
  • $ bin/console sylius:install
于 2017-09-18T09:55:23.207 回答