Created
September 23, 2012 16:25
-
-
Save ckgagan/3772202 to your computer and use it in GitHub Desktop.
ROR installation
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
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