Closed (fixed)
Project:
Drush
Version:
7.x-5.9
Component:
PM (dl, en, up ...)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2010 at 05:57 UTC
Updated:
28 Jul 2013 at 14:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
greg.1.anderson commentedWe could test for curl via 'which curl' to work around this, I suppose.
Comment #2
hefox commentedPatch attached, seems to work
Comment #3
jonhattan`which` is not available on windows, this is why this code test for command availability with curl --version
This is the output in debian stable and testing:
versions 7.18.2 and 7.21
it seems you're using an old version of curl. From the changelog:
I don't know how old is darwin9.0 but breaking on windows to support an old version of curl doesn't seem the best option. Perhaps curl --otherthing is possible. Otherwise you just can install wget.
needs work or works as designed. whatever you prefer.
Comment #4
jonhattanso I decided to add `which curl` as a 3rd test if curl --version failed. I'll not make much friends if I ask people to buy a new licence :p
http://drupalcode.org/viewvc/drupal/contributions/modules/drush/commands...
Comment #5
techninja commentedTypo alert!
You probably already caught this, but you put in "drus_shell_exec" instead of "drush_shell_exec" in that last commit
http://drupalcode.org/viewvc/drupal/contributions/modules/drush/commands...
Would have been a nasty surprise for the OSX folks!
Comment #6
jonhattanpanic! I need going bargain hunting for a darwin after christmas.
Comment #8
scott.whittaker commentedI'm getting this error message attempting to do a "drush pm-update" using crush 4.5 on Ubuntu 10. Both wget and curl are available and work from the command line to the same user I'm running drush as. In fact I just used wget to download and install Console_Table for drush 4.5 after a "drush selfupdate"
Comment #9
xaqroxDemonstration of this odd behavior:
I don't know if this is a bug in Drush or something wrong with my environment, but it sure is weird!
Comment #10
cdmo commentedI had a similar error message and resolved it by using ~/.drush/php.ini. See example.php.ini in the drush install package and details in the readme.
Comment #11
dotsam commentedThanks cdmo, that worked for me. I just copied the example form here http://drush.ws/examples/example.drush.ini
Comment #12
dotsam commentedUsing drush 5.1
Comment #13
greg.1.anderson commentedSeems this is caused by mis-configured php.ini. Thanks, @cdmo.
Comment #15
the_g_bomb commentedJust as an update:
My php5/cli had:
display_errors = Onchanging it to:
display_errors = stderrsolved this
Comment #16
guilopes commentedthe comment #15 solved my problem, thanks :)
Comment #17
luxpir commentedComment #15 also solved it for me. Many thanks.
Comment #18
rambabburi commentedWhere I need to put the above patch file?
I already in stalled Drush,if i execute the below command:
drush php-eval "var_dump(drush_shell_exec('curl --version'))";
i am getitng bool(false)