Ruby on Rails in Windows 8

Share on..
Tweet about this on TwitterShare on FacebookShare on Google+Share on TumblrEmail this to someone

As of this writing the most stable version of Ruby is 1.9.3p545 I installed Ruby first not knowing that Rails Installer actually has Ruby packaged in it. So I may have two different installs of Ruby on my Machine. One at C:\Ruby193 and the other in C:\RailsInstaller\Ruby1.9.3

This tutorial (documentation for myself) starts after I installed Ruby at the installation of Git and Ruby Installer for windows, here we go:

Step 1.) Download Git for Windows because your gonna need it.

Step 2). Download Ruby Installer for Windows, this will also install the following packages

Considering you already installed Git, your configuration will automatically default to your username and email from GIt and you will get a public key accessible to your clipboard. Paste that into a notepad for later use.

Your prompt will be set to C:\Sites> and while were here let’s test some commands out to se version numbers of what was installed. Try the following powershell commands:

C:\Sites>ruby -v
C:\Sites>rails -v
C:\Sites>gem -v

OK, so we obviously have Ruby, Rails and Gem installed lets test the Interactive Ruby Shell


This should give you a irb prompt:


Let’s type: 2+3

irb<main>L001:0> 2+3

It should return 5 and look like this:

=> 5

Let’s type: quit

irb<main>L001:0> quit

and Close out of the command prompt, we are fine for now.

Step 3). Download Microsoft Visual C++ 2010 SP1 and install (Required for WAMP Server) It’s possible you may have this already so I chose to repair.

Step 4). Download and install WAMP Server 2.2 to C:\wamp and it will include the following open source goodness:

  • Apache 2.4.2
  • MySQL 5.5.24
  • PHP 5.4.3
  • PHP MyAdmin 3.5.1
  • Sql Buddy 1.3.3
  • XDebug 2.2.0

Step 5). Copy C:\wamp\bin\mysql\mysql5.5.24\lib\libmysql.dll to C:\RailsInstaller\Ruby1.9.3\bin so that MySQL will be in the Rails package.

Step 6) Download Aptana and install it into C:\Program Files (x86)\Aptana Studio 3 which is not the default location aptana chooses. You will need to browse to Program files (x86) and pste the desiresd directory “Aptana Studio 3” manually.

Step 7) Open Aptana Studio and you will be prompted to select a workspace, I set mine to the C:\wamp\www for now.

Good luck! Ruby is better on Mac, but this may help you get started with configuration.

Leave a Reply

You must be logged in to post a comment.