about img
blogger img

UnderPaidLoveMonkis posts img

scotts posts image


/usr/bin/ruby: no such file to load — auto_gem (LoadError)

Scott Rippee @ 8:46 pm December 17th, 2006

Gentoo decided to throw me a hurdle when trying to `emerge rubygems` tonight:

CODE:
  1. >>> Install rubygems-0.8.11-r5 into /var/tmp/portage/rubygems-0.8.11-r5/image/ category dev-ruby
  2. /usr/bin/ruby: no such file to load -- auto_gem (LoadError)
  3. /usr/bin/ruby: no such file to load -- auto_gem (LoadError)
  4.  
  5. !!! ERROR: dev-ruby/rubygems-0.8.11-r5 failed.
  6. !!! Function ruby_einstall, Line 125, Exitcode 1
  7. !!! setup.rb config failed
  8. !!! If you need support, post the topmost build error, NOT this status message.

The solution is to clear the RUBYOPT variable:

CODE:
  1. RUBYOPT="" emerge rubygems

7 Responses to “/usr/bin/ruby: no such file to load — auto_gem (LoadError)”

  1. Nolan Eakins Says:

    And this does what?

  2. Marton Sari Says:

    Thanks very much.

  3. Daevid Vincent Says:

    Thank you! This was driving me nuts, and http://bugs.gentoo.org didn't show anything for rubygems that I found.

  4. Henrik Says:

    This helped me repairing my ruby install... big time. Thank you!

  5. Ryan Says:

    Thanks! Exactly what I was looking for. I couldn't get ruby 1.9 to run on gentoo.

  6. Davi Says:

    Thank you very much.

    It solved my problem with Ruby Enterprise Edition + Gentoo.

  7. Vetal4eg Says:

    Nice! thx u!

Leave a Reply

Subscribe without commenting