Skip to content

Windows-based Ruby install with Rubygems interfering with cygwin ruby?

I had a problem with a windows-based install of Ruby with RubyGems kept
screwing up my cygwin-based installation of Ruby. Seems this is a
‘well-known’ problem in the Ruby community. The symptons look like this


$ irb
/usr/bin/ruby: no such file to load — ubygems (LoadError)

Really annoying. To fix this unset the RUBYOPT environment variable in
your cygwin shell’s setting. The manual way to do this in bash is
shown:


$ unset RUBYOPT
$ irb
irb(main):001:0>

Be Sociable, Share!

{ 2 } Comments

  1. Scott L Holmes | February 5, 2006 at 11:45 am | Permalink

    Thanks for the information on Cygwin Ruby. This was mildly driving me crazy. I’m putting together the language bindings for Ruby and Redland librdf and not knowing what I was doing I couldn’t put my finger on it. Talk about flow. The flow of this problem was to work and work and work and work and then finally, you get the Aha – Google Keywords Nivarna!

    Given any thought to how Google may be accelerating the evolution of homosapien?

  2. Geoff | December 23, 2006 at 12:56 am | Permalink

    I was able to fix this by installing gems from the cygwin command line.