Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# How I managed to install #ruby-2.0 with #rvm on #MacOS 10.8
export CC=/usr/bin/gcc
rvm pkg install openssl
rvm install ruby-head --with-gcc=clang --verify-downloads 1 # see *
rvm use ruby-head
ruby -v
ruby 2.0.0dev (2013-02-24) [x86_64-darwin12.2.0]
# * If your first try fails, do it with reinstall again.
# rvm reinstall ruby-head --with-gcc=clang --verify-downloads 1

iboard commented Feb 24, 2013

Sure I couldn't wait to update my latest ruby-project.

The project used the following gems:

gem 'rspec'
gem 'redcarpet'  # used by yard
gem 'yard'
gem 'simplecov'

And here are the steps necessary to upgrade ...

rvm use ruby-head
rvm gemset create ruby2
rvm use ruby-head@ruby2
gem install bundler --pre

And we go ....

gem list

*** LOCAL GEMS ***

bundler (1.3.0.pre.8, 1.2.4)
diff-lcs (1.1.3)
multi_json (1.6.1)
rake (10.0.3)
redcarpet (2.1.1)
rspec (2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
rspec-mocks (2.12.0)
rubygems-bundler (1.1.0)
rvm (
simplecov (0.7.1)
simplecov-html (0.7.1)
yard (0.8.3)

And we're green

rspec -f p spec/

Finished in 0.03873 seconds
33 examples, 0 failures
Coverage report generated for RSpec to /Users/aa/Development/strands/coverage. 348 / 348 LOC (100.0%) covered.

zph commented May 27, 2013

Thanks for the writeup, this solved my SSL errors in RVM, Ruby 2.0.0-p195.

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