Skip to content

Instantly share code, notes, and snippets.

@litch
Created February 24, 2013 17:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save litch/5024723 to your computer and use it in GitHub Desktop.
Save litch/5024723 to your computer and use it in GitHub Desktop.
Ruby 2.0.0 installation with RVM and running on heroku. RVM instructions sourced from: https://coderwall.com/p/tptocq A quick comparison of Ruby 2.0.0 performance loading rails can be found at my blog: www.superpumpup.com
source 'https://rubygems.org'
ruby "2.0.0"
gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'
...
rvm get head
# For Debian-based systems
apt-get install libyaml-dev
# For Mac with Homebrew
brew install libyaml
rvm pkg install openssl
rvm install 2.0.0 \
--with-openssl-dir=$HOME/.rvm/usr \
--verify-downloads 1
rvm use 2.0.0
@chastell
Copy link

FWIW, rvm get stable got me RVM 1.18.12 with Ruby 2.0.0-p0 support (and rvm install 2.0.0 fetched a pre-built binary!).

@litch
Copy link
Author

litch commented Feb 24, 2013

Awesome! I figured it wouldn't be long until it would happen... I guess adding this to my desktop will be even easier..

@shpshft
Copy link

shpshft commented Feb 25, 2013

Strange... I HAD to sudo to get the install to work. That's not usually the case.

@litch
Copy link
Author

litch commented Feb 26, 2013

Note that if you get an error like this:

~/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /Users/litch/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `block in connect'
from /Users/litch/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/timeout.rb:51:in `timeout'
from /Users/litch/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `connect'
from /Users/litch/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:861:in `do_start'
from /Users/litch/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:856:in `start'

It's probably because you forgot to do that rvm pkg install openssl

@litch
Copy link
Author

litch commented Feb 26, 2013

And also note that when I did rvm get stable instead of pre, rvm installed openssl version 1.0.1c, which did not work with ruby2. So I had to redo it with the pre'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment