Rubygems 1.3.5 can't load 'rubygems/defaults/operating_sy..'

Hello,

I had troubles using net-ssh gem and when debugged my script it raised
the following:

$ruby -dw sshtry.rb
Exception LoadError' at /usr/lib/ruby/1.8/rubygems.rb:1113 - no such file to load -- rubygems/defaults/operating_system Exception NoMethodError’ at /usr/lib/ruby/1.8/rational.rb:78 -
undefined method gcd' for Rational(1, 2):Rational Exception LoadError’ at /usr/lib/ruby/1.8/rubygems/config_file.rb:34 -
no such file to load – Win32API
Exception `LoadError’ at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31

  • no such file to load – net/ssh
    Exception `LoadError’ at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31
  • no such file to load – highline
    Exception `LoadError’ at /usr/lib/ruby/1.8/rubygems/custom_require.rb:38
  • no such file to load – highline
    Exception `LoadError’ at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31
  • no such file to load – termios
    Exception `LoadError’ at /usr/lib/ruby/1.8/rubygems/custom_require.rb:38
  • no such file to load – termios
    Exception `Net::SSH::Exception’ at
    /var/lib/gems/1.8/gems/net-ssh-2.0.15/lib/net/ssh/transport/algorithms.rb:296
  • could not settle on language_client algorithm
    Exception `Net::SSH::Exception’ at
    /var/lib/gems/1.8/gems/net-ssh-2.0.15/lib/net/ssh/transport/algorithms.rb:296
  • could not settle on language_server algorithm
    /var/lib/gems/1.8/gems/net-ssh-2.0.15/lib/net/ssh.rb:192:in `start’:
    Net::SSH::AuthenticationFailed
    from sshtry.rb:14

I also posted this trace in
Trouble installing acts_as_taggable_on_steroids - Rails - Ruby-Forum, where I went from google,
couse Abigail seems to have the same trouble with another library.

I’ve looked into rubygems.rb and it tries to load this file
‘rubygems/defaults/operating_system’, but the entire ‘rubygems/defaults’
directory is missing. There is only a file ‘defaults.rb’

I saw in http://rubygems.rubyforge.org/rdoc/History_txt.html that this
is ‘required’ since rubygems 1.2.0…

I’ve tryied reinstalling rubygems (with apt-get purge and install later)
on ubuntu 9.10 and got no fix.

Here are my env. data:

++++++++++++++++++++++++++

$ gem -v
1.3.5

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]

$ uname -a
Linux eric-box 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC
2009 i686 GNU/Linux

$ gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.3.5
  • RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
  • INSTALLATION DIRECTORY: /var/lib/gems/1.8
  • RUBY EXECUTABLE: /usr/bin/ruby1.8
  • EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /var/lib/gems/1.8
    • /home/eric/.gem/ruby/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES: