Removing and updating Ruby on Mac without using RVM

I recently decided to remove RVM from my system. Some of the arguments made on this page convinced me:

Actually, I decided, however, that I did not want to worry about multiple versions of Ruby. I just want to use version 1.9.2-p290 and not worry about anything else. However, when I run ruby --versionon my Mac, it tells me that I have version 1.8.7. I looked how easy it is to remove this Ruby from my Mac, but I didn’t find anything strange. It seems that the only people who ever want to remove Ruby run linux, and everyone who uses a Mac, recommend RVM.

How to remove Ruby 1.8.7 from my Mac? I would like to upgrade to version 1.9.2-p290, and I would like to have only one version on my system.

+5
source share
2 answers

It’s easier to install the new version of ruby ​​and just update your path so that all binaries refer to your new installation. I do it locally with REE (installed in / opt / ruby ​​-enterprise-1.8.7-2010.02)

export PATH=/opt/ruby-enterprise-1.8.7-2010.02/bin:$PATH

$> which ruby
/opt/ruby-enterprise-1.8.7-2010.02/bin/ruby

You don't get the advantage (or complexity) of hot-swap ruby ​​interpreters like RVM, but I installed this when I created this dev system and never changed it.

Since ruby ​​ships with OSX, I do not recommend uninstalling it just by working on a version of the system.

+7
source

You must go macports and install the ruby19 port:

sudo port install ruby19 +nosuffix

The new ruby ​​version will take precedence over the pre-installed one.

+3
source

All Articles