-
-
Save yomike05/2561128 to your computer and use it in GitHub Desktop.
Quick Rbenv, Ruby and Rails setup
This file contains 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 | |
$ 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