Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 "" | 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/ libidn/1.23 librtmp/2.3

share|improve this question
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 ""
# php installer

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

$ curl -o installer ""
share|improve this answer
curl -o installer ""; outputs the same result as before but using wget did the trick, thanks! – Kronos Apr 11 '13 at 22:22

Your Answer


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.