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

I follow the Ruby on Rails tutorial and the tutorial has been updated to a new version of Rails, so I can no longer follow it because I have an older version.

I would like to start a new one and remove Ruby on Rails and any related software on my Mac OS X 10.5.8 and follow it from scratch. If someone wants to help me remove Ruby and Ruby on Rails, this will be very helpful.

+14
ruby ruby-on-rails macos
Nov 06 '10 at 23:50
source share
2 answers

Download RVM or RBENV and upgrade to the latest version of Ruby (2.3.0 at the moment). Do not touch your Ruby system.

+23
Nov 06 '10 at 23:52
source share

Are you removing Ruby on Rails or Ruby AND Ruby on Rails?

If you want to remove Ruby on Rails, simply use gems uninstall rails or make gems dependency rails , and then gems uninstall for each of the listed stones that Rails depends on. If you installed them on a system scale using sudo first, you will have to use sudo again to remove them.

If you want to remove the system-wide Ruby that you installed from the source code, I would probably leave it alone and install any new versions of Ruby using RVM. An older version will not be visible to applications unless you want them to see it or set their path to enable it. A version of RVM will be found first, unless you make an rvm system .

In fact, you can simply install RVM and install new versions of Ruby, and then install new versions of Rails without even bothering to delete the old files. RVM is cool.

+3
Nov 07 '10 at 4:12
source share



All Articles