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


E

Eric Roscher

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
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 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.

I don't know where else to look.

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/

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


Thanks in advance!

Regards,

Eric
 
Ad

Advertisements

E

Eric Roscher

I also tryied to uninstall and instal rubygems by hand and didn't work
:(

(sorry my english)

Thanks,

Eric
 
E

Eric Hodel

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


It's a feature of ruby -d

$ ruby -de 'begin; raise; rescue; end; p :eek:k'
Exception `RuntimeError' at -e:1 -
:eek:k
$ ruby -de 'begin; require "no such file"; rescue LoadError; end; p :eek:k'
Exception `LoadError' at -e:1 - no such file to load -- no such file
:eek:k

it prints for every raised error, even if caught.
 
Ad

Advertisements

E

Eric Roscher

Woha!
It's a feature of ruby -d

$ ruby -de 'begin; raise; rescue; end; p :eek:k'
Exception `RuntimeError' at -e:1 -
:eek:k
$ ruby -de 'begin; require "no such file"; rescue LoadError; end; p :eek:k'
Exception `LoadError' at -e:1 - no such file to load -- no such file
:eek:k

it prints for every raised error, even if caught.

Sorry my n00bness :p, i will look forward for those on net-ssh only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top