curl (48) An unknown option was passed in to libcurl, cannot install composer

0

I'm trying to install composer via cURL but I cannot find how to download the phar archive. I've installed cURL from source activating in it's build ssl and ssh compatibility; I need composer to have my php projects interact with Amazon EC2 instances (Amazon Documentation) but, as I try curl -s "http://getcomposer.org/installer" | php nothings seems to happen, command "seems" to execute normally but nothing is downloaded neither passed to php. Evenmore if I try -sSoption I get the following error curl: (48) An unknown option was passed in to libcurl which also happens if I omit all options. I tried to follow one similar post on Stack Overflow -> Post about cURL , without having any luck. Any ideas? I have PHP 5.3.10 running on Ubuntu 12.04 with cURL version = curl 7.29.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3

Edgar Sampere

Posted 2013-04-11T21:48:52.137

Reputation: 23

Answers

1

Instead of piping the output of cURL into PHP, try downloading the installer first and then running it:

$ wget -O installer "http://getcomposer.org/installer"
# php installer

Or, if you want to use cURL instead of wget, replace the wget command with:

$ curl -o installer "http://getcomposer.org/installer"

Rain

Posted 2013-04-11T21:48:52.137

Reputation: 2 238

curl -o installer "http://getcomposer.org/installer" outputs the same result as before but using wget did the trick, thanks!

– Edgar Sampere – 2013-04-11T22:22:49.567