Skip to content

Instantly share code, notes, and snippets.

@litch litch/Gemfile
Created Feb 24, 2013

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

chastell commented Feb 24, 2013

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

This comment has been minimized.

Copy link
Owner 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..

@bynines

This comment has been minimized.

Copy link

bynines commented Feb 25, 2013

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

@litch

This comment has been minimized.

Copy link
Owner 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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.