Skip to content

Instantly share code, notes, and snippets.

@MhdSyrwan
Created March 5, 2012 21:36
Show Gist options
  • Save MhdSyrwan/1981261 to your computer and use it in GitHub Desktop.
Save MhdSyrwan/1981261 to your computer and use it in GitHub Desktop.
RubyOnRails installer
#!/bin/bash
wget https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
sudo /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion coffeescript node
chmod +x rvm-installer
./rvm-installer
source ~/.rvm/scripts/rvm
echo "[[ -s \"\$HOME/.rvm/scripts/rvm\" ]] && source \"\$HOME/.rvm/scripts/rvm\" \# Load RVM into a shell session *as a function* " >> ~/.bashrc
source .bashrc # just for reloading bash
rvm install 1.9.3
rvm use 1.9.3 --default
gem install rails
echo "End of Ruby On Rails Installation"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment