Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.05 KB

File metadata and controls

37 lines (27 loc) · 1.05 KB

Installing Ruby Guidelines

Get required system packages for Ruby

$ sudo apt-get install build-essential libssl-dev libreadline-gplv2-dev zlib1g zlib1g-dev libxslt-dev libxml2-dev libsqlite3-dev curl

Install GIT

$ sudo apt-get install git git-core

Setup SSH keys

Setup your info

Install ruby-build

Full instructions: https://github.com/sstephenson/ruby-build

$ git clone git://github.com/sstephenson/ruby-build.git
$ cd ruby-build
$ sudo ./install.sh

Install rbenv

Full instructions: https://github.com/sstephenson/rbenv

$ cd
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc

Restart terminal

Install ruby

$ rbenv install 1.9.2-p290
$ rbenv global 1.9.2-p290
$ touch ~/.gemrc; echo 'gem: --no-ri --no-rdoc' >> ~/.gemrc

Install bundler

$ gem install bundler

Install rails

$ gem install rails