Step-by-Step procedure: Installing Rails (Ruby on Rails) on Windows 7 x64 bit system

Download the latest version of Rails available from its official site: http://rubyonrails.org/

The Current latest version is 4.0.2 released Dec 3, 2013

 

Before you start installing Rails, you first need to have the appropriate version of Ruby for your Rails on the chosen platform.  For Rails 4.0.2 on Windows x64 bit systems, the supported version of Ruby is Ruby 2.0.0

Download latest version of Ruby from its official site: http://rubyinstaller.org/downloads/

 

In order to successfully build your development environment you need to install the appropriate Development Kits (DevKit).

Download latest version of Ruby Development Kits (DevKit) from its official site: http://rubyinstaller.org/downloads/

 

 

  1. Run the Ruby 2.0.0 MSI installer.
  2. Extract the Development Kits file and copy it to an easily accessible location. I used: C:DevKit-mingw64-64-4.7.2-20130224-1432-sfx
  3. Then launch “Start Command Prompt with Ruby”image
  4. Then run the Command: ruby dk.rb init  (Initializes the Ruby Gems Environment by creating a "config.yml" file in the current directory)image_thumb3
  5. Then run the Command: ruby dk.rb install (installs the Development Kit)image_thumb7
  6. Then run the Command: gem install bson_ext –platform=ruby (will set the environment to use platform variable as ruby)image_thumb9
  7. Then run the Command: gem install rails (This installs the Rails and its gems)image

Leave a Reply

Your email address will not be published. Required fields are marked *