Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I uninstall Ruby on Rails on Mac OS X?

I am following a tutorial about Ruby on Rails, and the tutorial got updated to a new version of Rails, so I can't follow it anymore because I have an older version.

I would like to start new and uninstall Ruby on Rails and any related software on my Mac OS X 10.5.8, and follow it from ground up. If anyone would be willing to help me uninstall Ruby and Ruby on Rails, it would be much appreciated.

like image 665
Jeff Avatar asked Nov 06 '10 23:11

Jeff


2 Answers

Download RVM or RBENV and upgrade to the latest Ruby (2.3.0 at this point). Don't touch your system Ruby.

like image 96
Kevin Sylvestre Avatar answered Oct 07 '22 01:10

Kevin Sylvestre


Are you uninstalling Ruby on Rails, or Ruby AND Ruby on Rails?

If you want to uninstall Ruby on Rails it should be a simple matter of using gem uninstall rails or doing gem dependency rails and then gem uninstall for each of the listed gems that Rails depends on. If you installed them system-wide, using sudo originally, you'll have to use sudo again to uninstall them.

If you want to uninstall a system-wide Ruby you installed from source, well, I'd probably leave it alone and install any new versions of Ruby using RVM. The older version won't be visible to apps unless you want them to see it or set your path to include it. RVM's version will be found first unless you do rvm system.

Actually you could simply install RVM and have it install your new versions of Ruby, then from there install new versions of Rails, without even bothering to uninstall the old stuff. RVM really is that cool.

like image 3
the Tin Man Avatar answered Oct 07 '22 02:10

the Tin Man