문제

I'm not sure why I'm getting this error :

php composer.phar require guzzle/guzzle:~3.7

Error :

    ./composer.json has been updated
     Loading composer repositories with package information
     Updating dependencies (including require-dev)
     Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - guzzle/guzzle v3.8.1 requires ext-curl * -> the requested PHP extension curl is  missing from your system.
    - Installation request for 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].


Installation failed, reverting ./composer.json to its original content.

Any idea ??!

도움이 되었습니까?

해결책 2

It is better to use guzzle/guzzle through a bundle if you are using symfony.

I recommend you to use misd/guzzle-bundle. So, add this line on your composer.json

"misd/guzzle-bundle": "1.1.*@dev"

Then, update your bundles:

php composer.phar update 

And you will get the last version of guzzle/guzzle.

Dont forget to install this:

sudo apt-get install php5-curl

다른 팁

guzzle/guzzle v3.8.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.

Just install cURL extension. On Debian/Ubuntu: sudo apt-get install php5-curl. Don't forget to restart your web server/PHP process.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top