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

1 Answer 1

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"
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .