Ruby gem LoadError - rubygems/defaults/operating_system

operating-system, ruby, rubygems

Solution

Were you running using `-d`? If so, this email reckons that it's displaying exceptions even when they're rescued.

Problem

I've installed ruby 1.8.6 p368 and gems 1.3.4 as well as required libraries like zlib, ssl or readline on my winxp sp3 box. The problem is, when I now try to use some gem, I get the following error: ``` Exception `LoadError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1112 - no su ch file to load -- rubygems/defaults/operating_system Exception `LoadError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require. rb:31 - no such file to load -- mysql ``` Seems like it makes sense to start with fixing the missing "rubygems/defaults/operating_system" file. How can I do that? TIA PS: gem env is ``` RubyGems Environment: - RUBYGEMS VERSION: 1.3.4 - RUBY VERSION: 1.8.6 (2009-03-31 patchlevel 368) [i386-mswin32] - INSTALLATION DIRECTORY: D:/ruby/lib/ruby/gems/1.8 - RUBY EXECUTABLE: D:/ruby/bin/ruby.exe - EXECUTABLE DIRECTORY: D:/ruby/bin - RUBYGEMS PLATFORMS: - ruby - x86-mswin32-60 - GEM PATHS: - D:/ruby/lib/ruby/gems/1.8 - C:/Documents and Settings/fluffy/.gem/ruby/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/ ```

Original source