I am installing composer with the following cammand
curl -s https://getcomposer.org/installer | php
But I am keep getting below err
sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin
Run this command and it will work, so i think :D
To download / install on MacOSX, you can do the following steps or try the homebrew steps below:
Goto a directory you can write to:
cd ~
get composer:
curl -sS https://getcomposer.org/installer | php
move composer into a bin directory in your $PATH var:
sudo mv composer.phar /usr/local/bin/composer
double check composer works
composer about
(optional) Update composer:
sudo composer self-update
Homebrew
brew update
brew tap homebrew/homebrew-php
brew tap homebrew/dupes
brew tap homebrew/versions
brew install php55-intl
brew install homebrew/php/composer
In Ubuntu Vivid 15.04. Try: Steps:
Note: Sorry, my English is bad :(
In case if you dont have curl in your system, you can still install composer using the following command
Go to a directory where you can write,
cd yourDirectory
php -r "readfile('https://getcomposer.org/installer');" | php -d detect_unicode=off
I had the same error. I ended up adding sudo to the php side and it worked for me.
curl -sS https://getcomposer.org/installer | sudo php
Try this instead and change the setting on the fly, just for this command
curl -sS https://getcomposer.org/installer | php -d detect_unicode=Off