Skip to content

Instantly share code, notes, and snippets.

@jamesliu96
Created May 10, 2015 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesliu96/ecc96cf2923bb371f2e9 to your computer and use it in GitHub Desktop.
Save jamesliu96/ecc96cf2923bb371f2e9 to your computer and use it in GitHub Desktop.
Install Ruby on Rails
#!/bin/sh
sudo apt-get update
sudo apt-get install gcc g++ make
sudo apt-get install build-essential bison 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
wget http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz
tar -xzf ruby-2.2.2.tar.gz
cd ruby-2.2.2/
./configure
make
sudo make install
sudo gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment