# Rubygems 1.3.5 can't load 'rubygems/defaults/operating\_sy..'

**URL:** <https://www.ruby-forum.com/t/rubygems-1-3-5-cant-load-rubygems-defaults-operating-sy/179388>\
**Category:** Ruby\
**Created:** [November 24, 2009, 1:54am UTC](https://www.ruby-forum.com/t/rubygems-1-3-5-cant-load-rubygems-defaults-operating-sy/179388 "2009-11-24T01:54:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erubin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/82dd89/32.png) [@erubin](https://www.ruby-forum.com/u/erubin)\
**Post date:** [November 24, 2009, 1:54am UTC](https://www.ruby-forum.com/t/rubygems-1-3-5-cant-load-rubygems-defaults-operating-sy/179388/1 "2009-11-24T01:54:22Z")

</div>

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](http://www.ruby-forum.com/topic/199606#869591), 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](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:
  - [http://gems.rubyforge.org/](http://gems.rubyforge.org/)
