# Problem with using ruby

**URL:** <https://www.ruby-forum.com/t/problem-with-using-ruby/105242>\
**Category:** Ruby\
**Created:** [May 27, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/problem-with-using-ruby/105242 "2007-05-27T22:51:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ade](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@Ade](https://www.ruby-forum.com/u/Ade)\
**Post date:** [May 27, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/problem-with-using-ruby/105242/1 "2007-05-27T22:51:11Z")

</div>

This is somewhat silly, i downloaded the 1.8.6-25 installer for windows  
and installed it.  
I went to the command prompt and typed ruby -v, and i got this message  
saying ruby isnt a batch command recognized by windows.

What am i doing wrong? I used the one click installer.  
Thanks

---

<div class="post-metadata">

**Author:** ![Ade](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@Ade](https://www.ruby-forum.com/u/Ade)\
**Post date:** [May 27, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/problem-with-using-ruby/105242/2 "2007-05-27T22:56:15Z")

</div>

Ade wrote:

> This is somewhat silly, i downloaded the 1.8.6-25 installer for windows  
> and installed it.  
> I went to the command prompt and typed ruby -v, and i got this message  
> saying ruby isnt a batch command recognized by windows.
> 
> What am i doing wrong? I used the one click installer.  
> Thanks

Did you try opening a new command window? I don’t think changes to your  
path are reflected in existing command windows, only to command windows  
that you start after the change.

---

<div class="post-metadata">

**Author:** ![Ade](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@Ade](https://www.ruby-forum.com/u/Ade)\
**Post date:** [May 28, 2007, 12:00am UTC](https://www.ruby-forum.com/t/problem-with-using-ruby/105242/3 "2007-05-28T00:00:03Z")

</div>

On 5/27/07, Ade [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> This is somewhat silly, i downloaded the 1.8.6-25 installer for windows  
> and installed it.  
> I went to the command prompt and typed ruby -v, and i got this message  
> saying ruby isnt a batch command recognized by windows.
> 
> What am i doing wrong? I used the one click installer.  
> Thanks

It seems it’s a bug (or a feature?):

[http://rubyforge.org/tracker/index.php?func=detail&aid=10655&group\_id=167&atid=715](http://rubyforge.org/tracker/index.php?func=detail&aid=10655&group_id=167&atid=715)

---

<div class="post-metadata">

**Author:** ![Ade](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@Ade](https://www.ruby-forum.com/u/Ade)\
**Post date:** [May 28, 2007, 1:16pm UTC](https://www.ruby-forum.com/t/problem-with-using-ruby/105242/4 "2007-05-28T13:16:04Z")

</div>

On 27.05.2007 22:51, Ade wrote:

> This is somewhat silly, i downloaded the 1.8.6-25 installer for windows  
> and installed it.  
> I went to the command prompt and typed ruby -v, and i got this message  
> saying ruby isnt a batch command recognized by windows.
> 
> What am i doing wrong? I used the one click installer.

Did you make sure that “ruby.exe” is actually reachable via %PATH%?

robert

---

<div class="post-metadata">

**Author:** ![Ade](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@Ade](https://www.ruby-forum.com/u/Ade)\
**Post date:** [May 30, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/problem-with-using-ruby/105242/5 "2007-05-30T19:25:03Z")

</div>

On 5/27/07, Jano S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [http://rubyforge.org/tracker/index.php?func=detail&aid=10655&group\_id=167&atid=715](http://rubyforge.org/tracker/index.php?func=detail&aid=10655&group_id=167&atid=715)

The linked reposrt is incorrect. That person had something go wrong  
with their installation, which is probably the case hear, also. Make  
sure the ruby\bin directory is on your system path.

Curt

---

<div class="post-metadata">

**Author:** ![Ade](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@Ade](https://www.ruby-forum.com/u/Ade)\
**Post date:** [May 30, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/problem-with-using-ruby/105242/6 "2007-05-30T22:41:33Z")

</div>

On May 30, 1:23 pm, “Curt (Work) Hibbs” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On 5/27/07, Jano S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > It seems it’s a bug (or a feature?):
> 
> > [http://rubyforge.org/tracker/index.php?func=detail&aid=10655&group\_id](http://rubyforge.org/tracker/index.php?func=detail&aid=10655&group_id)…
> 
> The linked reposrt is incorrect. That person had something go wrong  
> with their installation, which is probably the case hear, also. Make  
> sure the ruby\bin directory is on your system path.

Speaking as the person who wrote that report, I’d say it is correct,  
as it is an accurate description of what happened on my machine. On  
the same machine, running the same version of Windows, version  
1.8.4-19 of the one-click installer consistently adds ruby\bin to the  
path (as well as doing other setup tasks), while version 1.8.6-25  
consistently fails to do so. This implies that _something_ is  
different in the behavior between the two versions of the installer.  
It may still work fine on some systems despite the difference, but I  
see I’m not the only one for whom it doesn’t.
