ERROR: While Executing gem

Discussion in 'Ruby' started by otaku, Nov 14, 2004.

  1. otaku

    otaku Guest

    Greetings to all,

    1.) rubygems installed fine... using the latest stable snapshot of ruby

    2.) i am getting the following ERROR while trying to install various
    gems

    BEGIN ERROR LOG
    -------
    hacker-otakus-Computer:/usr/local/src/rubygems-0.8.1 root#
    /usr/local/bin/gem install net-ssh
    Attempting local installation of 'net-ssh'
    Local gem file not found: net-ssh*.gem
    Attempting remote installation of 'net-ssh'
    Successfully installed net-ssh, version 0.1.0
    ERROR: While executing gem ... (ArgumentError)
    string contains null byte
    hacker-otakus-Computer:/usr/local/src/rubygems-0.8.1 root#
    /usr/local/bin/gem install rake
    Attempting local installation of 'rake'
    Local gem file not found: rake*.gem
    Attempting remote installation of 'rake'
    Successfully installed rake, version 0.4.11
    ERROR: While executing gem ... (ArgumentError)
    string contains null byte
    hacker-otakus-Computer:/usr/local/src/rubygems-0.8.1 root#
    /usr/local/bin/ruby --version
    ruby 1.8.2 (2004-11-12) [powerpc-darwin7.6.0]
    hacker-otakus-Computer:/usr/local/src/rubygems-0.8.1 root#
    -----
    END ERROR LOG
    otaku, Nov 14, 2004
    #1
    1. Advertising

  2. otaku

    Chad Fowler Guest

    On Mon, 15 Nov 2004 00:33:23 +0900, otaku <> wrote:
    > Greetings to all,
    >
    > 1.) rubygems installed fine... using the latest stable snapshot of ruby
    >
    > 2.) i am getting the following ERROR while trying to install various
    > gems
    >
    > BEGIN ERROR LOG
    > -------
    > hacker-otakus-Computer:/usr/local/src/rubygems-0.8.1 root#
    > /usr/local/bin/gem install net-ssh
    > Attempting local installation of 'net-ssh'
    > Local gem file not found: net-ssh*.gem
    > Attempting remote installation of 'net-ssh'
    > Successfully installed net-ssh, version 0.1.0
    > ERROR: While executing gem ... (ArgumentError)
    > string contains null byte
    > hacker-otakus-Computer:/usr/local/src/rubygems-0.8.1 root#
    > /usr/local/bin/gem install rake
    > Attempting local installation of 'rake'
    > Local gem file not found: rake*.gem
    > Attempting remote installation of 'rake'
    > Successfully installed rake, version 0.4.11
    > ERROR: While executing gem ... (ArgumentError)
    > string contains null byte
    > hacker-otakus-Computer:/usr/local/src/rubygems-0.8.1 root#
    > /usr/local/bin/ruby --version
    > ruby 1.8.2 (2004-11-12) [powerpc-darwin7.6.0]
    > hacker-otakus-Computer:/usr/local/src/rubygems-0.8.1 root#
    > -----
    > END ERROR LOG
    >
    >


    Greetings!

    Can you add "--backtrace" to your gem command and show us what it
    displays? e.g.:

    $ sudo gem install rake --backtrace

    This will show a hopefully more descriptive error message that will
    help us track down the problem.

    Thanks!
    Chad Fowler
    http://chadfowler.com
    http://rubycentral.org
    http://rubygarden.org
    http://rubygems.rubyforge.org (over 20,000 gems served!)
    Chad Fowler, Nov 14, 2004
    #2
    1. Advertising

  3. otaku

    otaku Guest

    hacker-otakus-Computer:/Users/otaku root# /usr/local/bin/ruby --version
    ruby 1.8.2 (2004-11-12) [powerpc-darwin7.6.0]
    hacker-otakus-Computer:/Users/otaku root# /usr/local/bin/gem install
    rake --backtrace
    Attempting local installation of 'rake'
    Local gem file not found: rake*.gem
    Attempting remote installation of 'rake'
    Successfully installed rake, version 0.4.11
    ERROR: While executing gem ... (ArgumentError)
    string contains null byte
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:63:in
    `directory?'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:63:in
    `search_loadpath'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:63:in
    `delete_if'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:63:in
    `search_loadpath'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:4:in
    `require'
    /usr/local/lib/ruby/1.8/rdoc/rdoc.rb:8
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
    `require__'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
    `require'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/doc_manager.rb:42:in
    `generate_rdoc'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:167:in
    `execute'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:166:in
    `each'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:166:in
    `execute'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/command.rb:49:in `invoke'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in
    `process_args'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run'
    /usr/local/bin/gem:11
    hacker-otakus-Computer:/Users/otaku root#
    otaku, Nov 14, 2004
    #3
    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. han
    Replies:
    1
    Views:
    116
    Lyle Johnson
    Oct 24, 2005
  2. Ronald Fischer

    buffer error while executing gem

    Ronald Fischer, May 14, 2007, in forum: Ruby
    Replies:
    1
    Views:
    190
    Jano Svitok
    May 14, 2007
  3. Lost Warrior
    Replies:
    0
    Views:
    82
    Lost Warrior
    Apr 12, 2008
  4. Dog Day
    Replies:
    2
    Views:
    781
    Quintus
    Jan 26, 2011
  5. Markus Fischer
    Replies:
    4
    Views:
    336
    Nick Klauer
    Mar 27, 2011
Loading...

Share This Page