Skip to content

Instantly share code, notes, and snippets.

@iboard
Last active January 20, 2019 08:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iboard/5023717 to your computer and use it in GitHub Desktop.
Save iboard/5023717 to your computer and use it in GitHub Desktop.
obsolete - install ruby2
# 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
Copy link
Author

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
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.

@zph
Copy link

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