Skip to content

Instantly share code, notes, and snippets.

@johnmdonahue
Created February 25, 2012 00:10
Show Gist options
  • Save johnmdonahue/1904781 to your computer and use it in GitHub Desktop.
Save johnmdonahue/1904781 to your computer and use it in GitHub Desktop.
Quick Rbenv, Ruby and Rails setup
$ cd
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
# Add the following to your .bashrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
# Install ruby-build
$ mkdir -p ~/.rbenv/plugins
$ cd ~/.rbenv/plugins
$ git clone git://github.com/sstephenson/ruby-build.git
# Install and use ruby 1.9.3-p0
$ rbenv install 1.9.3-p0
$ rbenv global 1.9.3-p0
# Install Rails 3.2
$ gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment