Skip to content

Instantly share code, notes, and snippets.

@tc
Forked from juno/using-ruby-1.9.3-p327.md
Last active December 15, 2015 06:38
Show Gist options
  • Save tc/5217245 to your computer and use it in GitHub Desktop.
Save tc/5217245 to your computer and use it in GitHub Desktop.
update to reflect ruby 1.9.3-p392

Using ruby-1.9.3-p392 with ruby-env and ruby-build

Prerequisite

  • Mac OS X Mountain Lion (10.8.2)
  • Homebrew
  • readline
  • rbenv

Install or update ruby-build

Install ruby-build as a rbenv plugin:

$ mkdir -p ~/.rbenv/plugins
$ cd ~/.rbenv/plugins
$ git clone git://github.com/sstephenson/ruby-build.git

or update ruby-build:

$ cd ~/.rbenv/plugins/ruby-build
$ git pull

Install ruby-1.9.3-p392

$ brew link readline
$ export RUBY_VERSION=ruby-1.9.3
$ CONFIGURE_OPTS="--with-readline-dir=/usr/local" rbenv install $RUBY_VERSION
Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz...
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /Users/juno/.rbenv/versions/$RUBY_VERSION
Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-$RUBY_VERSION.tar.gz...
Installing ruby-1.9.3-p392...
Installed ruby-1.9.3-p392 to /Users/juno/.rbenv/versions/1.9.3-p392
$ brew unlink readline

Make ruby-1.9.3-p392 default

$ rbenv global 1.9.3-p392
$ ruby -v
ruby 1.9.3p392 ....

done.

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