Skip to content

Instantly share code, notes, and snippets.

@kannans
Last active August 29, 2015 14:04
Show Gist options
  • Save kannans/f92e35d3cc5f7feb56d9 to your computer and use it in GitHub Desktop.
Save kannans/f92e35d3cc5f7feb56d9 to your computer and use it in GitHub Desktop.
how to Install Ruby on Rails on a new Ubuntu system with all important packages
Installation steps for running Ruby On Rails.
Step 1:
Download install ubuntu system from ubuntu site.
Step 2:
Open terminal install the following requirements
SSH:
ssh-keygen -t rsa
Git:
sudo apt-get install git
GitFlow:
sudo apt-get install git-flow
Curl:
sudo apt-get install curl
NodeJS:
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
Package for 'pg' gem:
sudo apt-get install libpq-dev
gem install pg
package for 'mysql2' gem:
sudo apt-get install libmysql-ruby libmysqlclient-dev
gem install mysql2
centos
sudo yum install mysql-devel
Postgressql database:
sudo apt-get install postgresql postgresql-contrib
Rmagick: #use for image manipulation
sudo apt-get install libmagickwand-dev
Step 3:
open terminal and install following requirements
RVM:
\curl -L https://get.rvm.io | bash -s stable
After installation close the terminal
Step 4:
open terminal make as login shell from terminal preferences.
Step 5:
Install rvm requirements
source ~/.rvm/scripts/rvm
rvm requirements
Step 6:
Install ruby latest version
Ruby:
rvm install ruby
rvm use ruby --default
Ruby Gems:
rvm rubygems current
Step 7:
Install latest stable rails gem
Rails:
gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment