I am trying to get composer set up so I can work with the Laravel framework.
I successful edited my php.ini file, and are correct for installing Composer. I changed directories to bin, by using the following command: cd /bin
Then, in bin, I used the following command to try to install Composer:
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin
but I get the following output:
#!/usr/bin/env php
All setting correct for using Composer
The defined install dir (bin) does not exist
What could be the issue here?
I used echo $PATH to get the following output:
/usr/bin:/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin
so it appears that /usr/local/bin does exist. I'm at a loss. Thank you for your help.
You shouldn't have to change directories before you run the installation command (and in any case, /bin
is quite different from /usr/local/bin
). Try this instead:
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With