Al Hoang

January 16, 2006

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

Filed under: programming, ruby — hoanga @ 11:40 pm

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>

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • Reddit
  • StumbleUpon
  • LinkedIn

2 Comments »

  1. Scott L Holmes

    February 5, 2006 @ 11:45 am

    1

    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 @ 12:56 am

    2

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

Leave a Comment

You must be logged in to post a comment.

Powered by WordPress

Protected by AkismetBlog with WordPress