Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I uninstall Ruby on Rails and do a clean install?

I'm following a Rails tutorial. I'm having version problems with RVM and am getting lots of errors. I would like to start over with a clean version of Ruby, Rails, Gemfiles, etc.

Can anyone give me some brief instructions on how to uninstall my Ruby-on-Rails environment?

like image 275
william tell Avatar asked Jan 03 '11 02:01

william tell


People also ask

How do I uninstall old versions of Ruby?

Any gems that you install while using an RVM's ruby version, is self contained in that version. However there may come a time when you no longer want to use a particular ruby version and want to delete it along with all it's gems. Then this can be done using the “remove” command.

How do I completely remove Ruby from my Mac?

Uninstall Ruby on Mac with rbenv For rbenv, use rbenv versions to see which versions you have installed. Use the uninstall command to remove a version. This will remove any gems associated with the version as well. If you want to reinstall Ruby, see Install Ruby on Mac for recommendations of newer version managers.


1 Answers

Try this:

rvm get head
rvm reset
rvm remove ... # take the output of rvm list and do rvm remove for each item in the list
rvm cleanup
rvm repair
rvm notes # make sure that you've got all the dependencies mentioned in the output from this command
rvm install ... # reinstall your rubies

This is likely overkill, but it should get you close to a known-good configuration. If it doesn't, try:

rvm implode

That will completely remove RVM and you can start over from scratch.

If none of this works or you are still confused, paste some of the error messages here and tell more about your operating system and configuration details.

Good luck!

like image 147
Erick Avatar answered Oct 13 '22 15:10

Erick