Main Contents

Installing Ruby and Rails on Windows

general, rails, ruby

May be you heard about the web framework ruby on rails, and you want to give ti a try. Well, this post describes how you install ruby and rails on a windows computer in less then 10 minutes.

Installing Ruby

First you need to install ruby.

  1. Download the latest ruby version from http://www.ruby-lang.org/en/downloads/ .
  2. Execute the installer.
  3. Add the Path to the ruby executable to your PATH. (You find detailed description how to expand the PATH here.)

Install Gem

Gem is the ruby packet manager. We need it beecause rails is a gem itself.

  1. Download the latest version ruby gems from http://rubyforge.org/frs/?group_id=126
  2. Exctract the archive
  3. Navigate on a command shell to the top directory (This directory contains the file setup.rb)
  4. Execute the setup file with the command : ruby setup.rb

Installing rails

We already installed ruby and the gem packet manager. The last step is that we install rails itself.

  1. Open a command shell.
  2. Type the command : gem install rails.

That’s it ! If you want to test your installation just type on your command shell the following command.

rails myapp

This should create a rails app skeleton with the name myapp.

jazzanowak @ March 16, 2008

2 Comments

  1. Peter October 8, 2008 @ 20:56

    Oh no, it was a small spelling mistake:
    config.action_mailer.delivery_method = :smtp

    instead
    config.action_mailer.delivery_method = :smpt

    in development.rb

    BTW: thanks for the link to the rails tutorials.
    You should definitely mention
    http://railscasts.com/

  2. Govind November 17, 2008 @ 14:02

    Step 2 - Installing gems on Windows 2008/Windows 2003 - requires you to run the command shell as administrator or otherwise you will get the permission denied error.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


Feed