Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I upgrade to the current version of Ruby (2.2.3) on OS X v10.6.8?

I'm looking at "Install Ruby on Rails · Mac OS X Yosemite", and in the instructions it says to update your OS which I don't really want to do because my computer is getting old.

I also found "How to update Ruby to 1.9.x on Mac?". As far as I can tell, I don't have RVM and I'm afraid of yet another install, in case my system requirements still aren't good enough.

Ultimately, I'm trying to update Jekyll, but I need to update my system a little bit first. I need Ruby 1.9.3 or later. Will "How to update Ruby to 1.9.x on Mac?" work? I'm running Ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin10.0]'.

EDIT: I did end up getting RVM installed. For those who find this page in the future, I ran into these issues/help pages:

  • How to resolve "gpg: command not found" error during RVM installation?
  • OS X Mavericks install rvm WARNING * WARNING: You have '~/.profile' file...
  • RVM installation missing $PATH * WARNING: Above files containsPATH=with no$PATHinside
like image 298
user70848 Avatar asked Nov 24 '15 00:11

user70848


People also ask

What is the latest version of Ruby for Mac?

The current stable version is 3.1. 2. Please be sure to read Ruby's License.


1 Answers

I suggest that you use RVM to install Ruby.

curl -sSL https://get.rvm.io | bash -s stable --ruby 

You need to restart the terminal in order to run rvm:

rvm install 2.2 rvm use 2.2 --default 
like image 91
Linus Oleander Avatar answered Oct 21 '22 03:10

Linus Oleander