Created
February 25, 2012 00:10
-
-
Save johnmdonahue/1904781 to your computer and use it in GitHub Desktop.
Quick Rbenv, Ruby and Rails setup
This file contains hidden or 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
$ 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