Skip to content

Instantly share code, notes, and snippets.

@ckgagan
Created September 23, 2012 16:25
Show Gist options
  • Save ckgagan/3772202 to your computer and use it in GitHub Desktop.
Save ckgagan/3772202 to your computer and use it in GitHub Desktop.
ROR installation
sudo apt-get update system => for updating system
sudo apt-get install build-essential git-core for intalling git
sudo apt-get install curl => for installing curl
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) => installing rvm
echo '[[ -s "/home/{{username}}/.rvm/scripts/rvm" ]] && source "/home/{{username}}/.rvm/scripts/rvm"' >> ~/.bashrc => to load rvm in bashrc
source ~/.bashrc => to reload bash
type rvm | head -1 => must output rvm is a function
rvm pkg install zlib => install zlib as this must be installed before installing ruby
rvm install 1.9.3 => install ruby
rvm use --default 1.9.3 => set ruby default version
sudo apt-get install mysql-client mysql-server libmysql-ruby libmysqlclient-dev => install mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment