# Ruby installation winders PATH issue

**URL:** <https://www.ruby-forum.com/t/ruby-installation-winders-path-issue/82773>\
**Category:** Ruby\
**Created:** [January 20, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/ruby-installation-winders-path-issue/82773 "2007-01-20T19:07:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beelzebozo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/45deac/32.png) [@beelzebozo](https://www.ruby-forum.com/u/beelzebozo)\
**Post date:** [January 20, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/ruby-installation-winders-path-issue/82773/1 "2007-01-20T19:07:20Z")

</div>

Hello I’ve installed ruby from the one click installer on a windows xp  
home ed laptop. Everything works ok if I call ruby directly  
c:\ruby\bin\ruby. However ruby is not making it to my path. This is  
probably more of a windows problem, but perhaps someone can help. Here’s  
a capture of what I have…

C:\>ruby\bin\ruby -v  
ruby 1.8.5 (2006-08-25) [i386-mswin32]  
C:\>ruby  
‘ruby’ is not recognized as an internal or external command,  
operable program or batch file.  
C:\>path  
PATH=  
C:\ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ruby;C:\ruby\lib;C:\ruby\freeride;

Thanks for your assistance.  
Ray

---

<div class="post-metadata">

**Author:** ![beelzebozo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/45deac/32.png) [@beelzebozo](https://www.ruby-forum.com/u/beelzebozo)\
**Post date:** [January 21, 2007, 11:59am UTC](https://www.ruby-forum.com/t/ruby-installation-winders-path-issue/82773/2 "2007-01-21T11:59:45Z")

</div>

On 1/20/07, Ray H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ‘ruby’ is not recognized as an internal or external command,  
> operable program or batch file.  
> C:\>path  
> PATH=
> 
> C:\ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ruby;C:\ruby\lib;C:\ruby\freeride;

It looks like you path is starting with a CR or LF character. This would  
have the effect of making the first path in the list invalid (which  
happens  
to be the ruby\bin path). Get rid of the extra character from your path  
and  
things should start working better.

Curt

---

<div class="post-metadata">

**Author:** ![beelzebozo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/45deac/32.png) [@beelzebozo](https://www.ruby-forum.com/u/beelzebozo)\
**Post date:** [January 21, 2007, 2:51pm UTC](https://www.ruby-forum.com/t/ruby-installation-winders-path-issue/82773/3 "2007-01-21T14:51:00Z")

</div>

Ray H. wrote:

> operable program or batch file.  
> C:\>path  
> PATH=  
> C:\ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ruby;C:\ruby\lib;C:\ruby\freeride;
> 
> Thanks for your assistance.  
> Ray

By any chance are you using a command shell that was open before you  
installed Ruby? You’ll need to open a new one for the shell to pick up  
the path changes.

Otherwise, I dunno what to tell you.

Dan
