【问题标题】:Installing Sylius安装 Sylius
【发布时间】:2013-09-21 14:31:53
【问题描述】:

我正在安装 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. 按照第一个答案中的说明进行操作:启用扩展 curl 和 intl
  7. 使用函数 get_loaded_extension() 确认 curl 和 intl 已加载。嗯,已经加载了

【问题讨论】:

    标签: php symfony frameworks sylius


    【解决方案1】:

    看起来你需要安装两个 PHP 扩展来完成这项工作:curlintl(它提供了 symfony/icu 所需的 lib-icu)。由于您使用的是 Windows,我推荐official guide 了解如何在 Windows 系统上安装扩展。您可以在 PECL 存储库 here 中找到 intl 扩展。

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

    【讨论】:

    • 谢谢,解决了
    • 还是同样的问题。
    • 如果您运行php -i,它应该会显示一个(长)活动 PHP 扩展列表。 curlintl 在该列表中吗?
    • 我做了 php -i 并将输出重定向到一个文本文件中,然后搜索了 intl 和 curl。结果 - >“找不到卷曲”和国际。 intl 和 curl 在 Wamp Server 中都有一个刻度
    • 如果它们在php -i 输出中未显示为启用,则它们处于非活动状态。不幸的是,我对 Wamp Server 不太熟悉,所以我认为我无法帮助您解决这个问题;您可以尝试在官方论坛 (forum.wampserver.com/list.php?2) 寻求帮助。
    【解决方案2】:

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

    尝试在 CLI 的配置 X:\path\to\wamp\bin\php\php.ini 中启用 curlintl(顺便说一句。Apache 的配置放在 X:\path\to\wamp\bin\apache\bin\php.ini 中)。

    【讨论】:

      【解决方案3】:

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

      您只需要在 SSH 中运行以下命令,否则将安装 Terminal Sylius

      • $ composer create-project -s beta sylius/sylius-standard project
      • $ cd project
      • $ npm install
      • $ npm run gulp
      • $ bin/console sylius:install

      【讨论】:

        猜你喜欢
        • 2020-05-13
        • 2017-06-23
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-05-20
        • 1970-01-01
        • 1970-01-01
        • 2015-04-07
        相关资源
        最近更新 更多