guzzle: composer fails with "requires ext-curl" when cURL is installed
Iām 100% positive I have curl installed - I use it often, and have for many hears. That said, when I run composer from the Tumblr PHP API (which has guzzle as a dependency), it fails with:
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
- 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.
- guzzle/guzzle v3.6.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.5.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.4.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.4.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.4.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.4.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.3.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.3.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.2.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.1.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.1.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.1.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for guzzle/guzzle >=3.1.0,<4 -> satisfiable by guzzle/guzzle[v3.1.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1].
WAMP, Windows 8.1
Is this a known issue, or am I missing something?
TYIA
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 31 (2 by maintainers)
apt-get install php5-curl
if you use php7 then use apt-get install php-curl
For windows with PHP7: find ;extension=php_curl.dll in your php.ini and remove the ā;ā.
if you are using php 5.6 then
sudo apt-get install php5-curl
worked for me! Thanks a million.For anyone who uses php7.0
sudo apt-get install php7.0-curl
if you are using php7.1 then it should apt-get install php7.1-curl
sudo apt-get install php7.3-curl for php 7.3
One thing, I want to mention here for this particular extension you have to specify your php version that you can find out by php -v and replace with above 7.3 with your current configure/installed version.Just
sudo apt-get install php-curl
resolved my problem.sudo apt-get install php-curl worked for me! for php 7.1
Try
composer install --ignore-platform-reqs
for php 7.4 sudo apt-get install php7.4-curl
apt-get install php5-curl ⦠thank you Drakun