When trying to run the composer install script in the php official docker container (php:5.6-apache) the command line seems to just hang waiting for input
the command I am trying to run is the following
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
and if composer is manually installed in the /usr/bin directory and ran using
composer
the same thing happens. PHP seems to hang waiting for input though you can ctrl-c and escape to the terminal at any time. I have tried installing
apt-get install -y php5-cli
but that didn't help. Any Ideas?
Below are the exact commands I entered and exactly what happened when I followed your instructions. I did it as
root
. It worked fine. Sorry!Maybe something below will help you. If not, my goto is often
strace
for a quick look at a problem like this before I try anything too complicated:Using strace
strace /usr/local/bin/composer
Your commands and output
OS = Ubuntu 16.04