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