Skip to content

Instantly share code, notes, and snippets.

@yomike05
Forked from johnmdonahue/gist:1904781
Created April 30, 2012 18:47
Show Gist options
  • Save yomike05/2561128 to your computer and use it in GitHub Desktop.
Save yomike05/2561128 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
$ sudo apt-get install zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev
# Install and use ruby 1.9.3-p327
$ rbenv install 1.9.3-p327
$ rbenv global 1.9.3-p327
# Install Rails 3.2
$ gem install rails
# If "Rails is not currently installed on this system"
$ rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment