2014-12-04 59 views
1

我得到這個錯誤試圖安裝Monolog,我試圖用sudo命令安裝它,但它仍然不起作用。我使用的是Ubuntu 14.04。Monolog composer.json不工作

 
Loading composer repositories with package information 
Installing dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - aws/aws-sdk-php 2.4.10 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4]. 
    - aws/aws-sdk-php 2.4.11 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4]. 
    - aws/aws-sdk-php 2.4.12 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1]. 
    - aws/aws-sdk-php 2.4.9 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4]. 
    - aws/aws-sdk-php 2.5.0 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1]. 
    - aws/aws-sdk-php 2.5.1 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1]. 
    - aws/aws-sdk-php 2.5.2 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1]. 
    - aws/aws-sdk-php 2.5.3 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1]. 
    - aws/aws-sdk-php 2.5.4 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1]. 
    - aws/aws-sdk-php 2.6.0 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1]. 
    - aws/aws-sdk-php 2.6.1 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.10 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.11 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.12 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.13 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.14 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.15 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.16 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.2 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.3 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.4 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.5 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.6 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.7 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.8 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.6.9 requires guzzle/guzzle >=3.7.0, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.7.0 requires guzzle/guzzle >=3.7, satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.7.1 requires guzzle/guzzle ~3.7 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.7.2 requires guzzle/guzzle ~3.7 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.7.3 requires guzzle/guzzle ~3.7 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.7.4 requires guzzle/guzzle ~3.7 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.7.5 requires guzzle/guzzle ~3.7 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.7.6 requires guzzle/guzzle ~3.7 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - aws/aws-sdk-php 2.7.7 requires guzzle/guzzle ~3.7 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2]. 
    - guzzle/guzzle v3.9.2 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.9.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.9.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.8.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.8.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.4 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.2 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - Installation request for aws/aws-sdk-php ~2.4, >2.4.8 -> satisfiable by aws/aws-sdk-php[2.4.10, 2.4.11, 2.4.12, 2.4.9, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.6.1, 2.6.10, 2.6.11, 2.6.12, 2.6.13, 2.6.14, 2.6.15, 2.6.16, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.6.6, 2.6.7, 2.6.8, 2.6.9, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.7.5, 2.7.6, 2.7.7]. 

{ 
    "require": { 
     "propel/propel": "dev-master", 
    "monolog/monolog": "1.0.*" 
    } 
} 
+0

這個問題似乎是無關緊要的,因爲它是關於在系統上安裝軟件的。 – 2014-12-04 21:45:07

+0

您的php安裝缺少捲曲擴展,因此無法安裝guzzle,並且aws-sdk依賴於guzzle。正如錯誤消息所述。但是,您發佈的composer.json不需要aws-sdk(如果您不需要開發monolog的依賴關係,其中包括aws-sdk)。你確定你的配置是正確的嗎?檢查作曲家文檔。 – Rangad 2014-12-04 22:17:26

回答

3

只是這樣做:

sudo apt-get install php5-curl 

我也面臨這樣的問題,偶然發現了這個問題。是的,安裝cURL是解決方案。

編輯: 請記住安裝後重新啓動服務器(只是PHP/Apache)。

+0

您不應該需要重新啓動服務器。您可能需要重新啓動PHP,但重新啓動機器或Web服務器並不能真正幫助任何事情。 – 2015-03-17 19:21:49

+0

噢,是的,我的意思是重啓Apache以及PHP。將編輯答案反映清楚。 – harkirat1892 2015-03-18 21:54:14