Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

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"
share|improve this answer
    
curl -o installer "getcomposer.org/installer"; outputs the same result as before but using wget did the trick, thanks! –  Kronos Apr 11 '13 at 22:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.