সোমবার, ২০ এপ্রিল, ২০১৫

Setting up Rails 4.0 on Windows 7 X86/X64

If you are searching for a step by step guide to setup Rails 4.0 on a Windows 7 machine (x86/x64), please follow the steps below one by one : -
Please fetch your Ruby 2.0 (x86 version only) windows installer from here.
Install the downloaded Ruby 2.0 installer, while selecting the following 2 options: -
  1. Add Ruby install path to your environment variables
  2. Associate with ’.rb’ files
Please open a command prompt and then type : -
  1. ruby -v, check it displays the installed ruby version correctly.
  2. gem -v, check it displays the installed gem version.
  3. gem update –system –no-ri –no-rdoc
Please fetch your Ruby 2.0 devkit (again x86 version only) from here.
Unzip your downloaded devkit zip and cd into the extracted directory and then type : -
  1. dk.rb init
  2. dk.rb install
Please fetch your SQLite 3 dll from here and copy the contents of the downloaded zip in the ‘bin directory’ under your Ruby installation directory.
Please open a command prompt and type the following commands : -
  1. gem install rails –no-ri –no-rdoc
  2. gem install sqlite3 –no-ri –no-rdoc
If all of the above commands completes successfully, you are finished with your rails installation. Please start your sample project by typing : -
  1. rails new <projectName>
  2. cd into ’projectName’ directory
  3. type ’rails server
  4. browse to localhost:3000.
Enjoy!!!
Alternatively while installing the various gems using the command prompt you can skip the ’–no-ri –no-rdoc’ appendage if you want to install the ruby doc that comes with your gems.

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন