Configuring Ruby 2.0.0 x64 on Windows 7 x64 bit system Running CygWin Installation

After you install Ruby 2.0.0 on a CygWin installed system and if you attempt to run the Ruby commands in normal command prompt it fails to find the Ruby.

This happens if Ruby ins nowhere in your PATH environment variable.  In case, if Cygwin is in your PATH it will try to run a Cygwin version of Ruby.

 

In command prompt:

C:>which ruby
/usr/bin/ruby

C:>

 

In Ruby Command Prompt:

C:>which ruby
/cygdrive/c/Ruby200-x64/bin/ruby

C:>

image

 

 

FIX:

Set Ruby installation location C:Ruby200-x64bin to System Environment Variable PATH.

 

Then in normal command prompt as well you’ll see system picking up the right ruby.

C:>which ruby
/cygdrive/c/Ruby200-x64/bin/ruby

C:>

<

p>image

Leave a Reply

Your email address will not be published. Required fields are marked *