Ruby and Cygwin

I was using Cygwin for a script that incorporated a Ruby one-liner in it. I was having trouble because I kept getting the error message No such file to load -- ubygems (LoadError).

The answer to the Ruby/Cygwin problem is here.

To summarize:

  1. Download Ruby Gems and extract it in a temporary directory in your Cygwin home directory.
  2. In Cygwin, type unset RUBYOPT.
  3. Navigate into the temporary directory that holds Ruby Gems and type ruby setup.rb to install it.

That's all.

The tutorial shows how to install Ruby on Rails in Cygwin, but I already have RoR installed in both Ubuntu and Windows so didn't need to install it in Cygwin also.

Syndicate content