Im trying to install composer on my production machine but keep getting many errors.
Im following the tutorial on this site
to install.
But when i run this command
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
I get the following error.
I removed the old installation because everytime I tried composer update I also got a memory error. So Im trying to update composer and now my machine cant even install composer.
My VPS has
- I have 1 cpu
- 50Gig HDD
- 2 Gig ram
2 Answers
"This is a list of common pitfalls on using Composer, and how to avoid them" Duplicated the response.
sudo su
dpkg -l| grep -v 'ii'| less
rc - means that the package was deleted, but the configuration files remained
ic - means that the package is installed, but no configuration files are configured
dpkg --audit
dpkg --get-selections | grep holdHow can you unhold (remove a hold on) a package?
While there is no built in way to remove all of your configuration information from your removed packages you can remove all configuration data from every removed package with the following command.
dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge