Hacker News new | ask | show | jobs
by nwienert 4717 days ago
I know you're not on a mac, but I just re-setup a mac and went through this. So, for anyone wondering. Luckily with homebrew supporting rbenv now it's a lot easier to do.

Download the git installer and run it.

Install homebrew using their script.

brew install rbenv

brew install ruby-build

Once that is done you'll need to copy some stuff in your shell profile. It will tell you the two lines. Restart your shell.

Here's the first trick. You need openssl:

brew install open-ssl

(make sure "qmake" is now available or restart shell and see)

To see ruby versions: rbenv install -l

I installed 2.0.0-rc2: rbenv install 2.0.0-rc2

Almost there! Set it as your global ruby

rbenv global 2.0.0-rc2

Make sure this outputs the right ruby version now: ruby -v

Now install bundler and rails!

gem install bundler

gem install rails

I probably missed a step or two, but I just ran through that process and had a few bumps in the road as usual myself.

1 comments

Correct me if I'm missing something, but why exactly are you using 2.0.0-rc2, when there is 2.0.0-p247 available?

I'd suggest doing

    rbenv install 2.0.0-p247

    rbenv global 2.0.0-p247
Also, it's openssl, not open-ssl, (just in case someone couldn't complete the step) i.e.

    brew install openssl