How To Install Ruby 2.0 With RVM

This weekend, I’m ready to try out Ruby 2.0 and Rails 4. Exciting, right?! Well, not that fast. Installing both of these is more complicated than I thought. So let’s start with installing Ruby 2.0.

This is what I did first:

$ rvm install 2.0.0-p0

Stuff started happening, so I got excited. It’s working! I thought.

Well, in my excitement I completely ignored that what was being installed was rbx, NOT ruby!

This is how you actually install Ruby 2.0:

rvm install ruby-2.0.0-p0

Finally, a success!


To install ruby 2.0 with open SSL, run the following command:

$ rvm install 2.0.0 --with-openssl-dir=$HOME/.rvm/usr

Enjoy the article? Join over 20,000+ Swift developers and enthusiasts who get my weekly updates.

  • is there any thing you done prior to this? I got some error trying to install it.

    rvm install ruby-2.0.0-p0
    No binary rubies available for: osx/10.7/x86_64/ruby-2.0.0-p0.
    Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies.
    Installing Ruby from source to: /Users/me/.rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)…
    ruby-2.0.0-p0 – #downloading ruby-2.0.0-p0, this may take a while depending on your connection…
    Error running ‘/Users/me/.rvm/scripts/fetch‘, please read /Users/me/.rvm/log/ruby-2.0.0-p0/fetch.log
    There has been an error fetching the ruby interpreter. Halting the installation.
    ‘rvm_codesign_identity’ is not set, please set it in ~/.rvmrc

    Of course googling doesn’t give any workable solution.. yet.

    • Hey,

      Sorry I wasn’t much help. I was just excited to get it working on my computer. Glad you figured it out!

      • Hey Natasha,

        No worries! My goal is always to become self-sufficient anyway. Your blog has helped me to have that confidence to do just that! Thanks! 🙂

        So are you using it with Rail 3.2 or have you tried with Rails 4 beta?

        • I did try out Rails 4, but found it way too difficult to work with, and I had a bug with my Ruby 2.0 installation where it didn’t work with an ssl connection, so after spending a day with it, I’m going to continue using Rails 3.2 and switch over once there are more answers on StackOverflow 🙂

          • Sounds like Rails 3.2 with Ruby 2.0 for now to me as well 🙂

            Thanks for sharing!

  • etiennes

    Wow, that 12000 Dollar Dev Bootcamp education really paid off, eh?

  • suresh

    Thanks for the post i followed and installed ruby 2. I am trying to deploy a rails app with unicorn nginx . but getting connection reset by peers did you deployed a rails app before on linux

    • Hi Suresh,

      I just use Heroku, so haven’t run into issues like that. Although, I think you’re supposed to do some special stuff to configure Ruby 2.0 for Heroku. Best of luck with the linux deploy! Hope I can do that one day 🙂

  • For those that may have the same problem as me 🙂

    I had issues with open SSL and the above –with… didn’t work. I was able to get it going using and then , rvm reinstall 2.0.0