I cannot call ruby from the Windows console

I have just installed Ruby 1.86.27 on Windows. I can access ruby from
the Windows start up menu, and it opens a console with ruby.

But I cannot enter the Windows console and write irb this is what
happens:

Microsoft Windows XP [Versión 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\SSanjuan>irb
"irb" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

( irb is not recognized as a internal or external command, a program or
.bat file

C:\Documents and Settings\SSanjuan>

I have used the standar ruby one click installation from
http://www.ruby-lang.org

Thanks.

Salvador

···

--
Posted via http://www.ruby-forum.com/.

Check your PATH.

C:\Documents and Settings\SSanjuan> echo %PATH%

It should contain c:\ruby\bin

If it doesn't, open My Computer | Properties | Advanced | Environment
Variables and add the path to irb.bat to PATH variable (separate
entries with ";").
Reopen your console window.

Alternatively call your irb as c:\ruby\bin\irb

···

On Mon, Aug 31, 2009 at 13:10, Salvador Sanjuan<salvador.sanjuan@gmail.com> wrote:

I have just installed Ruby 1.86.27 on Windows. I can access ruby from
the Windows start up menu, and it opens a console with ruby.

But I cannot enter the Windows console and write irb this is what
happens:

Microsoft Windows XP [Versión 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\SSanjuan>irb
"irb" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

( irb is not recognized as a internal or external command, a program or
.bat file

C:\Documents and Settings\SSanjuan>

I have used the standar ruby one click installation from
http://www.ruby-lang.org