2013-11-14 68 views
1

當我嘗試執行:嘗試創建sylius項目時從作曲家獲取安裝請求錯誤?

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

我收到以下錯誤:當你錯過了PHP擴展卷曲發生

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]. 

回答

10

此錯誤。某些sylius依賴關係依賴於該擴展。

要解決此錯誤,只需安裝並啓用php-curl擴展。

用apt-get的:

sudo apt-get install php5-curl

還是遵循:

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

0

添加minimum-stability選項composer.json文件。

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