2

How do I install Ruby on Rails on Windows Operating System? I am new to Ruby on Rails.

Neeraj Kumar
  • 771
  • 2
  • 16
  • 37
mRbOneS
  • 121
  • 1
  • 14
  • possible duplicate of [install ruby on rails on windows](http://stackoverflow.com/questions/9189628/install-ruby-on-rails-on-windows) – Burak Jun 28 '15 at 06:55

1 Answers1

1

Complete Installation process and set environment on windows and set git configuration:

step 1: Download links:

A. ruby on rails: visit http://railsinstaller.org/en and download

B. nodejs: visit https://nodejs.org/download/ and download

  1. run and install railsinstaller.exe

2.run and install node.exe (optional)

step 2: set environment path:

a. go: my computer > properties

enter image description here

b. Then Advanced system settings enter image description here

c. Then Environment Variables enter image description here

d. Then Edit (here you need to edit path)
enter image description here

e. add C:\nodejs; to path

enter image description here

Test: 1. Restart your pc (optional) 2. open your terminal (Git Bash or cmd ) 3. type & hit enter:

ruby -v
rails -v
git --version
node -v

enter image description here

  1. if you see the versions that means everything ok.

You can Set git configuration:

$ git config --global user.name "your github username"
$ git config --global user.email email@example.com

if you want to set github ssh you can see Generating SSH keys

if you want to install mysql and gem 'mysql2' see here

if you want to install postgresql and gem 'pg' see here

Community
  • 1
  • 1
Mezbah
  • 1,247
  • 2
  • 17
  • 32