Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Installing Ruby on a windows PC.

Hi there, I am attempting to install Ruby with no prior knowledge as per the "Installing Ruby on Windows" video. I have downloaded the most recent version, and extracted what I assume to be the correct devkit into \Ruby200\devkit.

I am now endevouring to follow the instructions in the video to initialise Ruby. The command

C:\Ruby200\devkit dir

functions correctly, and I am presented with the directory, containing the dk.rb command. However, when I try

C:\Ruby200\devkit ruby dk.rb

I am given the error "'ruby' is not recognised as an internal or external command, operable program or batch file."

When i try ..\devkit dk.rb I am presented with a pop-up "File scout", which prompts me to search the internet, or use an already installed program.

What am i doing wrong? Thanks

2 Answers

Here is a quick answer. Uninstall EVERYTHING ruby/rails related and install via this link. http://railsinstaller.org/en

Install with ruby v 1.9. After installation, open your command prompt and type in 'ruby -v' it should display the current version of ruby installed if the everything went accordingly . subsequently type in 'rails -v' and you will know that rails had also successfully been installed.

Everything seems to be installed. I dont know what it is that i HAVE installed, but it seems to be working, thanks =)

This in no way answers your question but I would highly suggest checking out nitrous.io as opposed to going postal over fighting windows bs for days on end.