Created
November 3, 2012 14:26
-
-
Save jfirebaugh/4007524 to your computer and use it in GitHub Desktop.
Installing Ruby 2.0.0-preview1 with RVM on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First, make sure that you have the most recent rvm. Several bugs with 2.0.0-preview1 | |
# have recently been fixed. | |
# | |
# Second, the openssl that comes with MacOS is too old for Ruby 2.0. You need to install | |
# a newer one with homebrew or the rvm pkg command. | |
# Option 1, with homebrew openssl: | |
brew update | |
brew install openssl | |
rvm get head | |
rvm install 2.0.0-preview1 --with-openssl-dir=`brew --prefix openssl` | |
# Option 2, with rvm pkg install openssl: | |
rvm get head | |
rvm pkg install openssl | |
rvm install 2.0.0-preview1 --with-openssl-dir=$rvm_path/usr |
Thanks, this worked for me!
I had to use jfirebaugh's suggestion -- for some reason I could not get rvm's openssl install to work, it always failed with rubygems. --skip-openssl saved me and my up-to-date brew package seems to work fine.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RVM will now install openssl automatically.
If you still want to use homebrew openssl: