public
Created

  • Download Gist
install_ruby2_with_rvm.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12
# 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

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
bundle

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 (1.11.3.6)
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.

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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.