At the end of my vagrant provisioning script I attempt to install composer using the following :
sudo curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
However when this is executed I get the following errors :
SlowTimer [5612ms] at curl: https://getcomposer.org/composer.phar
Download failed: Failed to open https://getcomposer.org/composer.phar (Resolving timed out after 5613 milliseconds)
The download failed repeatedly, aborting.
If I have php installed rather than hhvm and run the same commands on my vagrant vm the install is successful which indicates an incompatibility in hhvm. However I also have a Linode running Ubuntu 14.04 and hhvm (no php) and can install composer using these commands without any problems.
Given I can install composer using a similar environment on my Linode why does it fail on my vagrant vm and how do I rectify this?
php
on the command line, and it works? How did you do that? Apart from that, you could simply download the most recent version ofcomposer.phar
without using the download script because all it does is checking the local CLI PHP for sane .phar settings, which might lead to strange effects if done within the composer.phar itself if broken .phar settings apply (hen and egg problem). – Catalasewget https://getcomposer.org/installer
? – Ampliate