Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Rubygems 1.3.5 can't load 'rubygems/defaults/operating_sy..'

Reply
Thread Tools

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

 
 
Eric Roscher
Guest
Posts: n/a
 
      11-24-2009
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
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Eric Roscher
Guest
Posts: n/a
 
      11-24-2009
I also tryied to uninstall and instal rubygems by hand and didn't work


(sorry my english)

Thanks,

Eric

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Eric Hodel
Guest
Posts: n/a
 
      11-24-2009
On Nov 23, 2009, at 16:55, Eric Roscher wrote:

> 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 k'
Exception `RuntimeError' at -e:1 -
k
$ ruby -de 'begin; require "no such file"; rescue LoadError; end; p k'
Exception `LoadError' at -e:1 - no such file to load -- no such file
k

it prints for every raised error, even if caught.

 
Reply With Quote
 
Eric Roscher
Guest
Posts: n/a
 
      11-24-2009
Woha!

> It's a feature of ruby -d
>
> $ ruby -de 'begin; raise; rescue; end; p k'
> Exception `RuntimeError' at -e:1 -
> k
> $ ruby -de 'begin; require "no such file"; rescue LoadError; end; p k'
> Exception `LoadError' at -e:1 - no such file to load -- no such file
> k
>
> it prints for every raised error, even if caught.


Sorry my n00bness , i will look forward for those on net-ssh only.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP] No such file to load -- rubygems Une bévue Ruby 4 12-29-2005 02:15 PM
Failed to install Rails No such file to load -- rubygems/security (LoadError) Zoong Pham Ruby 1 08-11-2005 01:39 PM
RubyGems Load Error Problem -- Any Ideas? Anthony Baker (ThinkBigIdeas) Ruby 3 02-09-2005 08:42 PM
[BUG] RubyGems: "No such file to load -- rubygems/builder" Erik Veenstra Ruby 4 02-04-2005 10:28 PM
Problems with fresh install of RubyGems on Ubuntu Linux: No suchfile to load -- rubygems/builder (LoadError) Trevor Ruby 5 01-29-2005 12:52 AM



Advertisments