Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Created November 29, 2012 06:43
Show Gist options
  • Select an option

  • Save wilmoore/0cf869f4711500388133 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/0cf869f4711500388133 to your computer and use it in GitHub Desktop.
Install Ruby 2.0.0

Next we'll install some packages that various Ruby versions depends on.

brew install openssl readline zlib libyaml

Now install the apple-gcc42 compiler to be able to install versions of Ruby that are older than 1.9.3.

brew tap homebrew/dupes brew install apple-gcc42

Next install ruby-build so we can start installing Ruby implementations and versions on our machine.

ruby-build

export PATH=$HOME/local/ruby-build/bin:$PATH

ruby-version (activate default RUBY version and autocompletion)

export RUBY_VERSIONS=$HOME/local/ruby/versions source $HOME/Dropbox/projects/ruby-version/ruby-version.sh && ruby-version ruby-1.9.3-rc1 >/dev/null

CONFIGURE_OPTS=--with-openssl-dir=brew --prefix openssl

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