2014-03-20-install-ruby-os-x.md 1.1 KB


title: install ruby @ OS X author: Marcus Rohrmoser type: post date: 2014-03-20T11:32:40+00:00 url: /2014/03/install-ruby-os-x/ yourls_shorturl:

  • http://mro.name/4l categories:
  • en
    • sysadmin tags:
    • 1.8.7
    • end-of-life
    • Homebrew
    • Mountain Lion
    • OS X
    • rbenv
    • Ruby

OS X comes with a pretty hung ruby (1.8.7) until 'Mavericks'. ruby 1.8.7 had it's planned EOL long ago, even debian/stable nowadays comes with a newer one.

So if you're still running Mountain Lion or older, you may need to install ruby.

I chose rbenv and here's how I did:

  • RTFM
  • install rbenv: $ brew install rbenv ruby-build
  • add : $ brew install rbenv ruby-build
  • patch .bashrc
  • do a $ rbenv rehash
  • purge all previously installed gems: $ gem list | cut -d ' ' -f 1 | xargs sudo gem uninstall
  • restart terminal
  • install a ruby of choice, and happily bundle install ever after