【问题标题】:Getting Installation request errors from composer when trying to create a sylius project?尝试创建 sylius 项目时从作曲家获取安装请求错误?
【发布时间】:2013-11-14 12:28:16
【问题描述】:

当我尝试执行时:

composer create-project -s dev sylius/sylius:dev-master

我收到以下错误:

Installing sylius/sylius (dev-master 0da3c0022d3118135e56908dfa4c69e6699770ce)
  - Installing sylius/sylius (dev-master master)
    Cloning master

Created project in 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 fabpot/goutte v1.0.3 -> satisfiable by fabpot/goutte[v1.0.3].
    - fabpot/goutte v1.0.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
  Problem 2
    - Installation request for instaclick/php-webdriver 1.0.17 -> satisfiable by instaclick/php-webdriver[1.0.17].
    - instaclick/php-webdriver 1.0.17 requires ext-curl * -> the requested PHP extension curl is missing from your system.
  Problem 3
    - fabpot/goutte v1.0.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - behat/mink-goutte-driver v1.0.9 requires fabpot/goutte ~1.0.1 -> satisfiable by fabpot/goutte[v1.0.3].
    - Installation request for behat/mink-goutte-driver v1.0.9 -> satisfiable by behat/mink-goutte-driver[v1.0.9].

【问题讨论】:

    标签: symfony composer-php sylius


    【解决方案1】:

    当您缺少 PHP curl 扩展时会发生此错误。一些 sylius 依赖项依赖于该扩展。

    要解决这个错误,只需安装并启用 php-curl 扩展。

    使用 apt-get:

    sudo apt-get install php5-curl

    或关注:

    http://php.net/manual/en/curl.installation.php

    【讨论】:

      【解决方案2】:

      composer.json 文件中添加 minimum-stability 选项。

      {
          "require": {
              "php-ews/php-ews": "dev-master"
          },
          "minimum-stability": "dev"
      }
      

      【讨论】:

        猜你喜欢
        • 2017-01-07
        • 2014-10-06
        • 1970-01-01
        • 1970-01-01
        • 2020-04-13
        • 2014-05-21
        • 2015-12-24
        • 2013-09-07
        相关资源
        最近更新 更多