# 'ruby' not recognized as internal

**URL:** <https://www.ruby-forum.com/t/ruby-not-recognized-as-internal/78792>\
**Category:** Ruby\
**Created:** [December 8, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/ruby-not-recognized-as-internal/78792 "2006-12-08T17:32:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![parvg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@parvg](https://www.ruby-forum.com/u/parvg)\
**Post date:** [December 8, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/ruby-not-recognized-as-internal/78792/1 "2006-12-08T17:32:01Z")

</div>

Newbie question (s) /problem:  
I have ruby 1.8.5 on windows xp.  
when i type “ruby -v” in command line i keep getting the message:  
“‘ruby’ is not recognized as an internal or external command,  
operable program or batch file.”

Does ruby 1.8.5 (on clicker) come with rubygem? or do i have to install  
rubygem separately?

---

<div class="post-metadata">

**Author:** ![parvg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@parvg](https://www.ruby-forum.com/u/parvg)\
**Post date:** [December 8, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/ruby-not-recognized-as-internal/78792/2 "2006-12-08T17:43:17Z")

</div>

On 12/8/06, Parv G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Newbie question (s) /problem:  
> I have ruby 1.8.5 on windows xp.  
> when i type “ruby -v” in command line i keep getting the message:  
> “‘ruby’ is not recognized as an internal or external command,  
> operable program or batch file.”
> 
> Does ruby 1.8.5 (on clicker) come with rubygem? or do i have to install  
> rubygem separately?

Your system doesn’t know where to look for ruby.exe.

Add c:\ruby\bin to your PATH (My Computer, right-click, properties,  
Advanced, Environment Variables, find the line with PATH, add  
c:\ruby\bin (or wherever you have it installed) at the end, separate  
with ; from previous item.

and while you’re at it, look if you have a variable named RYBUOPT with  
‘rubygems’ and if not, add one (this will enable rubygems by default)

---

<div class="post-metadata">

**Author:** ![parvg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@parvg](https://www.ruby-forum.com/u/parvg)\
**Post date:** [December 8, 2006, 5:56pm UTC](https://www.ruby-forum.com/t/ruby-not-recognized-as-internal/78792/3 "2006-12-08T17:56:16Z")

</div>

Jan S. wrote:

> On 12/8/06, Parv G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Newbie question (s) /problem:  
> > I have ruby 1.8.5 on windows xp.  
> > when i type “ruby -v” in command line i keep getting the message:  
> > “‘ruby’ is not recognized as an internal or external command,  
> > operable program or batch file.”
> > 
> > Does ruby 1.8.5 (on clicker) come with rubygem? or do i have to install  
> > rubygem separately?
> 
> Your system doesn’t know where to look for ruby.exe.
> 
> Add c:\ruby\bin to your PATH (My Computer, right-click, properties,  
> Advanced, Environment Variables, find the line with PATH, add  
> c:\ruby\bin (or wherever you have it installed) at the end, separate  
> with ; from previous item.
> 
> and while you’re at it, look if you have a variable named RYBUOPT with  
> ‘rubygems’ and if not, add one (this will enable rubygems by default)

Thanks Jan,  
It turned out to be a type as i originally typed “c:\bin\ruby” to my  
PATH, went back and corrected, Appreciate your help  
Parv
