Forked from asugai/Install composer on Amazon AMI running on EC2
Last active
January 14, 2021 09:50
-
-
Save yurkinx/841ad98f8f9d761f750b to your computer and use it in GitHub Desktop.
Install composer on Amazon AMI running on EC2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~ | |
$ sudo curl -sS https://getcomposer.org/installer | sudo php | |
$ sudo mv composer.phar /usr/local/bin/composer | |
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
then you can run | |
$ sudo composer install |
- Because the soft link already created before. You can remove soft link and run this command again
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ubuntu@ip-172-31-39-231:~$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
ln: failed to create symbolic link '/usr/bin/composer': File exists
Could someone please help, I'm new to this