Skip to content

Instantly share code, notes, and snippets.

@garciadanny
Last active December 17, 2015 20:29
Show Gist options
  • Save garciadanny/5667498 to your computer and use it in GitHub Desktop.
Save garciadanny/5667498 to your computer and use it in GitHub Desktop.

Installing Ruby 2.0.0

  1. $ rvm get stable

NOTE: The reason why I brew installed the following packages is because running $ rvm install ruby-2.0.0 didn't seem to work for me. It broke when trying to install these packages, so I installed them manually then installed Ruby.

  1. $ brew install libyaml

    $ brew install libxml2

    $ brew install libxslt

    $ brew install libksba

  2. $ rvm install 2.0.0 --with-openssl-dir=$HOME/.rvm/usr --verify-downloads 1

  3. verify successful installation: $ rvm list rubies

  4. I then created a gemset for my solo project (optional):

    $ mkdir myRails32app

    $ cd myRails32app

    $ rvm use ruby-2.0.0@myRails32app --ruby-version --create

    $ gem install rails --version=3.2.13

    $ rails new .

Source: http://railsapps.github.io/installing-rails.html
Section: New projects with Rails 3.2 and Ruby 2.0 (rails 3.2 is the most recent release of Rails patched to work with Ruby 2.0)

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