How can I install composer on uberspace?
In order to have composer in the
$PATH, I created a folder
~/bin and added it to
.profile file which I had to create (thankfully emacs is available by default).
$ mkdir ~/bin $ emacs ~/.profile # use nano or vi(m) if you prefer, even joe is available # add the following line export PATH=$PATH:~/bin # and reload the configuration (no need to logout/relogin) $ source ~/.profile # . ~/.profile would work as well
For some reason the first two attempts didn't work:
$ curl -s https://getcomposer.org/installer | php $ curl -s https://getcomposer.org/installer | php -- --install-dir=bin
Thus I used
wget, which promptly complains about the certificate, which again means I need to
do it like this:
$ wget --no-check-certificate https://getcomposer.org/installer
Now I run the installer and move it to
~/bin, omitting the
$ php installer All settings correct for using Composer Downloading... Composer successfully installed to: /home/dave/composer.phar Use it: php composer.phar $ mv composer.phar ~/bin/composer
That's it. Composer is set up and can be run:
$ composer about Composer - Package Management for PHP Composer is a package manager tracking local dependencies of your projects and libraries. See http://getcomposer.org/ for more information.
Next up: Install symfony on uberspace