# RoR not responding via command line

**URL:** <https://www.ruby-forum.com/t/ror-not-responding-via-command-line/170304>\
**Category:** Rails\
**Created:** [June 15, 2009, 7:29pm UTC](https://www.ruby-forum.com/t/ror-not-responding-via-command-line/170304 "2009-06-15T19:29:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rikki123s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rikki123s](https://www.ruby-forum.com/u/rikki123s)\
**Post date:** [June 15, 2009, 7:29pm UTC](https://www.ruby-forum.com/t/ror-not-responding-via-command-line/170304/1 "2009-06-15T19:29:49Z")

</div>

Hey all,

Now here’s the problem, it is probably something simple but this problem  
is preventing my productivity.

I have installed RoR on my xp machine, and it is now installed, however,  
any ruby on rails commands are not recognized by cmd. every time i even  
try to create a new rails program, or attempt to create a ruby script  
object, cmd returns the error, ‘rails’ or 'ruby is not a recognized  
command.

am I missing something out?

I installed the latest version of ruby  
installed rubygems  
installed rails gem  
installed sqlite3 gem  
updated everything

I can create a rails project if I locate to C:\Ruby\bin and the type  
rails ‘project name’, but that is as far as it goes.

Any help would be highly appreciated

---

<div class="post-metadata">

**Author:** ![rikki123s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rikki123s](https://www.ruby-forum.com/u/rikki123s)\
**Post date:** [June 15, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/ror-not-responding-via-command-line/170304/2 "2009-06-15T19:40:52Z")

</div>

On Mon, Jun 15, 2009 at 12:29 PM, Rik  
Stott[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> command.  
> rails ‘project name’, but that is as far as it goes.  
> Sounds like you need to add C:\Ruby\bin to your PATH environment  
> variable.

–  
Michael C. Libby  
[www.mikelibby.com](http://www.mikelibby.com)

---

<div class="post-metadata">

**Author:** ![rikki123s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rikki123s](https://www.ruby-forum.com/u/rikki123s)\
**Post date:** [June 15, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/ror-not-responding-via-command-line/170304/3 "2009-06-15T19:47:51Z")

</div>

Michael L. wrote:

> On Mon, Jun 15, 2009 at 12:29 PM, Rik  
> Stott[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > command.  
> > rails ‘project name’, but that is as far as it goes.  
> > Sounds like you need to add C:\Ruby\bin to your PATH environment  
> > variable.
> 
> –  
> Michael C. Libby  
> [www.mikelibby.com](http://www.mikelibby.com)

cheers, how do I do that?

---

<div class="post-metadata">

**Author:** ![rikki123s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rikki123s](https://www.ruby-forum.com/u/rikki123s)\
**Post date:** [June 15, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/ror-not-responding-via-command-line/170304/4 "2009-06-15T20:57:26Z")

</div>

That worked once I had restarted my system, thank you 🙂

---

<div class="post-metadata">

**Author:** ![rikki123s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rikki123s](https://www.ruby-forum.com/u/rikki123s)\
**Post date:** [June 15, 2009, 8:00pm UTC](https://www.ruby-forum.com/t/ror-not-responding-via-command-line/170304/5 "2009-06-15T20:00:58Z")

</div>

On Mon, Jun 15, 2009 at 12:47 PM, Rik  
Stott[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Michael L. wrote:
> 
> > On Mon, Jun 15, 2009 at 12:29 PM, Rik  
> > Stott[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > > command.  
> > > rails ‘project name’, but that is as far as it goes.  
> > > Sounds like you need to add C:\Ruby\bin to your PATH environment  
> > > variable.
> 
> cheers, how do I do that?

I’m on Vista these days, I think the process was similar on XP.

Right click on “(My) Computer”, choose “Properties”

In Properties, look for “Advanced System Settings”. Then look for  
“Environment Variables”. Under “System Variables” select “Path” and  
click “Edit…” button.

The Path environment variable is a semicolon separated list of places  
to look for executables, add something like “;C:\Ruby\bin” at the end  
of the variable.

Click OK a bunch of times. Open a _new_ command prompt. Try “ruby -v”  
and “rails -v” to see if Ruby and Rails are working.

–  
Michael C. Libby  
[www.mikelibby.com](http://www.mikelibby.com)
