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

Discussion in 'Ruby' started by Eric Roscher, Nov 24, 2009.

  1. Eric Roscher

    Eric Roscher Guest

    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/.
    Eric Roscher, Nov 24, 2009
    #1
    1. Advertising

  2. Eric Roscher

    Eric Roscher Guest

    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/.
    Eric Roscher, Nov 24, 2009
    #2
    1. Advertising

  3. Eric Roscher

    Eric Hodel Guest

    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 :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.
    Eric Hodel, Nov 24, 2009
    #3
  4. Eric Roscher

    Eric Roscher Guest

    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.
    --
    Posted via http://www.ruby-forum.com/.
    Eric Roscher, Nov 24, 2009
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Fox

    Changing VS.NET defaults

    Mark Fox, Jul 31, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    358
    Yan-Hong Huang[MSFT]
    Aug 4, 2003
  2. Trevor
    Replies:
    5
    Views:
    558
    Bill Kelly
    Jan 29, 2005
  3. Erik Veenstra
    Replies:
    4
    Views:
    797
    Austin Ziegler
    Feb 4, 2005
  4. Melvin Clarkson
    Replies:
    6
    Views:
    144
    Melvin Clarkson
    Nov 3, 2009
  5. Rahul
    Replies:
    2
    Views:
    83
    brian d foy
    Feb 15, 2009
Loading...

Share This Page