Learn ROR: Installation of the Ruby Environment

Installing Ruby Interpreter:

  • Download Ruby Interpreter from here
  • Run the installer and respond to any prompts during installation.
  • When the installation is complete,you can test the Ruby Interpreter by going to Run->irb (Interactive Ruby).
  • Type the Command puts “Hi”
  • You will see the output


=> nil

  • Then type “quit” to quit the environment.


Installing Development Kit:

  • Download the development kit from here
  • Extract the downloaded file
  • Open Command prompt and go to the extracted directory.
  • Execute the following commands,

ruby dk.rb init

ruby dk.rb install


Installing Rails:

  • Go to Command Prompt by Run->cmd and they execute the command “gem install rails”
  • After Installing Rails, check whether java is installed on your computer. If not, install it by downloading the package from java.com


Checking the Installation:

  • Open command prompt.
  • Go to the directory where you installed ruby. Make a new directory.
  • Go to the newly created directory and create a rails project using the following commands,

rails new myapp

  • Now move to the myapp folder created in the directory.
  • Then start the rails server by executing

rails server

  • This will start the server and will show all the details about the process like pid, port no in which it is running etc.
  • Go to the web browser and open the url “localhost:<portno>”. Now you can see the starting page of your project. Here the port no will be shown in the cmd prompt when you start the server.


IDE : Aptana Studio 3(like eclipse)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s