Can't install rubygems

Discussion in 'Ruby' started by lijie, Jan 22, 2007.

  1. lijie

    lijie Guest

    The rubygems installer can't finish, and CPU is 100% used in several hours.

    --------------------------------------------------------------------------------------
    localhost rubygems-0.9.1 # uname -a
    Linux localhost 2.6.17.13 #1 SMP Wed Jan 3 09:30:41 Local time zone
    must be set--see zic m i686 Genuine Intel(R) CPU T2300 @
    1.66GHz GenuineIntel GNU/Linux

    localhost rubygems-0.9.1 # ruby -v
    ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-linux]

    localhost rubygems-0.9.1 # ruby setup.rb
    ---> bin
    <--- bin
    ---> lib
    ---> lib/rubygems
    <--- lib/rubygems
    ---> lib/rbconfig
    <--- lib/rbconfig
    <--- lib
    ---> bin
    <--- bin
    ---> lib
    ---> lib/rubygems
    <--- lib/rubygems
    ---> lib/rbconfig
    <--- lib/rbconfig
    <--- lib
    rm -f InstalledFiles
    ---> bin
    mkdir -p /usr/bin/
    install gem /usr/bin/
    install gemri /usr/bin/
    install gem_mirror /usr/bin/
    install gem_server /usr/bin/
    install gemwhich /usr/bin/
    install gemlock /usr/bin/
    install update_rubygems /usr/bin/
    install index_gem_repository.rb /usr/bin/
    <--- bin
    ---> lib
    mkdir -p /usr/lib/ruby/site_ruby/1.8/
    install ubygems.rb /usr/lib/ruby/site_ruby/1.8/
    install rubygems.rb /usr/lib/ruby/site_ruby/1.8/
    install gemconfigure.rb /usr/lib/ruby/site_ruby/1.8/
    ---> lib/rubygems
    mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems
    install config_file.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install gem_openssl.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install user_interaction.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install source_info_cache.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install server.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install source_index.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install cmd_manager.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install gem_runner.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install gem_commands.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install doc_manager.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install installer.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install remote_installer.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install old_format.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install builder.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install rubygems_version.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install format.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install custom_require.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install specification.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install dependency_list.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install command.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install package.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install timer.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install source_info_cache_entry.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install remote_fetcher.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install validator.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install version.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install security.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    <--- lib/rubygems
    ---> lib/rbconfig
    mkdir -p /usr/lib/ruby/site_ruby/1.8/rbconfig
    install datadir.rb /usr/lib/ruby/site_ruby/1.8/rbconfig
    <--- lib/rbconfig
    <--- lib
    Successfully built RubyGem
    Name: sources
    Version: 0.0.1
    File: sources-0.0.1.gem
     
    lijie, Jan 22, 2007
    #1
    1. Advertising

  2. lijie

    Eric Hodel Guest

    On Jan 21, 2007, at 19:16, lijie wrote:

    > The rubygems installer can't finish, and CPU is 100% used in
    > several hours.


    > <--- lib/rbconfig
    > <--- lib
    > Successfully built RubyGem
    > Name: sources
    > Version: 0.0.1
    > File: sources-0.0.1.gem


    If you hit ^C, what is the backtrace?

    --
    Eric Hodel - - http://blog.segment7.net

    I LIT YOUR GEM ON FIRE!
     
    Eric Hodel, Jan 22, 2007
    #2
    1. Advertising

  3. lijie

    lijie Guest

    2007/1/22, Eric Hodel <>:
    > If you hit ^C, what is the backtrace?


    --- output ---
    Successfully built RubyGem
    Name: sources
    Version: 0.0.1
    File: sources-0.0.1.gem
    --- Ctrl + C ----
    /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:127:in `initialize': Interrupt
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:127:in `each'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:127:in
    `initialize' from
    /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:109:in `new'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:109:in
    `new_from_stream'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:441:in
    `each_entry' from
    /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:439:in `loop'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:439:in
    `each_entry' from
    /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:424:in `each'
    ... 14 levels...
    from setup.rb:887:in `exec_install'
    from setup.rb:705:in `invoke'
    from setup.rb:674:in `invoke'
    from setup.rb:1352


    I have tested rubygems-0.8.11, 0.9.0 and 0.9.1.
     
    lijie, Jan 22, 2007
    #3
  4. lijie

    Eric Hodel Guest

    On Jan 22, 2007, at 24:24, lijie wrote:
    > 2007/1/22, Eric Hodel <>:
    >> If you hit ^C, what is the backtrace?

    >
    > --- output ---
    > Successfully built RubyGem
    > Name: sources
    > Version: 0.0.1
    > File: sources-0.0.1.gem
    > --- Ctrl + C ----
    > /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:127:in
    > `initialize': Interrupt
    > from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:127:in
    > `each'
    > from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:127:in
    > `initialize' from
    > /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:109:in `new'
    > from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:109:in
    > `new_from_stream'
    > from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:441:in
    > `each_entry' from
    > /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:439:in `loop'
    > from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:439:in
    > `each_entry' from
    > /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:424:in `each'
    > ... 14 levels...
    > from setup.rb:887:in `exec_install'
    > from setup.rb:705:in `invoke'
    > from setup.rb:674:in `invoke'
    > from setup.rb:1352
    >
    >
    > I have tested rubygems-0.8.11, 0.9.0 and 0.9.1.


    Did you have a RubyGems already installed before starting the upgrade?

    Could you try removing /usr/lib/ruby/site_ruby/1.8/rubygems and re-
    running setup?

    None of those lines match up with 0.9.1's package.rb.

    --
    Eric Hodel - - http://blog.segment7.net

    I LIT YOUR GEM ON FIRE!
     
    Eric Hodel, Jan 22, 2007
    #4
  5. lijie

    lijie Guest

    2007/1/22, Eric Hodel <>:
    > Did you have a RubyGems already installed before starting the upgrade?
    >
    > Could you try removing /usr/lib/ruby/site_ruby/1.8/rubygems and re-
    > running setup?
    >
    > None of those lines match up with 0.9.1's package.rb.



    I have removed it, and run setup again:

    # ruby setup.rb
    ---> bin
    <--- bin
    ---> lib
    ---> lib/rubygems
    <--- lib/rubygems
    ---> lib/rbconfig
    <--- lib/rbconfig
    <--- lib
    ---> bin
    <--- bin
    ---> lib
    ---> lib/rubygems
    <--- lib/rubygems
    ---> lib/rbconfig
    <--- lib/rbconfig
    <--- lib
    rm -f InstalledFiles
    ---> bin
    mkdir -p /usr/bin/
    install gem /usr/bin/
    install gemri /usr/bin/
    install gem_mirror /usr/bin/
    install gem_server /usr/bin/
    install gemwhich /usr/bin/
    install gemlock /usr/bin/
    install update_rubygems /usr/bin/
    install index_gem_repository.rb /usr/bin/
    <--- bin
    ---> lib
    mkdir -p /usr/lib/ruby/site_ruby/1.8/
    install ubygems.rb /usr/lib/ruby/site_ruby/1.8/
    install rubygems.rb /usr/lib/ruby/site_ruby/1.8/
    install gemconfigure.rb /usr/lib/ruby/site_ruby/1.8/
    ---> lib/rubygems
    mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems
    install config_file.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install gem_openssl.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install user_interaction.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install source_info_cache.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install server.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install source_index.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install cmd_manager.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install gem_runner.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install gem_commands.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install doc_manager.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install installer.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install remote_installer.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install old_format.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install builder.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install rubygems_version.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install format.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install custom_require.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install specification.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install dependency_list.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install command.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install package.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install timer.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install source_info_cache_entry.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install remote_fetcher.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install validator.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install version.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install security.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    <--- lib/rubygems
    ---> lib/rbconfig
    mkdir -p /usr/lib/ruby/site_ruby/1.8/rbconfig
    install datadir.rb /usr/lib/ruby/site_ruby/1.8/rbconfig
    <--- lib/rbconfig
    <--- lib
    Successfully built RubyGem
    Name: sources
    Version: 0.0.1
    File: sources-0.0.1.gem
    /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:74:in
    `new_from_stream': Interrupt
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:444:in `each_entry'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:442:in `loop'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:442:in `each_entry'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:427:in `each'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:488:in `initialize'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:586:in `new'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:586:in
    `open_from_io'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:806:in
    `open_from_io'
    ... 10 levels...
    from setup.rb:894:in `exec_install'
    from setup.rb:712:in `invoke'
    from setup.rb:681:in `invoke'
    from setup.rb:1359
     
    lijie, Jan 22, 2007
    #5
  6. lijie

    Eric Hodel Guest

    On Jan 22, 2007, at 02:38, lijie wrote:
    > 2007/1/22, Eric Hodel <>:
    >> Did you have a RubyGems already installed before starting the
    >> upgrade?
    >>
    >> Could you try removing /usr/lib/ruby/site_ruby/1.8/rubygems and re-
    >> running setup?
    >>
    >> None of those lines match up with 0.9.1's package.rb.

    >
    > I have removed it, and run setup again:
    >
    > # ruby setup.rb
    > /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:74:in
    > `new_from_stream': Interrupt


    Can you check your sources gem's MD5?

    $ md5 pkgs/sources/sources-0.0.1.gem
    MD5 (pkgs/sources/sources-0.0.1.gem) = 5e0ab904499bb982a6ef62fe3af0a291

    Is what I get.

    If that matches, can you try this script:

    data = <<-EOF
    ZGF0YS50YXIuZ3oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAADAwMDA2NDQAMDAwMDAwMAAwMDAwMDAwADAwMDAwMDAwMjYw
    ADAwMDAwMDAwMDAwADAxMzMxNQAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhcgAwMHdoZWVs
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAd2hlZWwAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAwMDAwMDAwADAwMDAwMDAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAA=
    EOF

    header = data.unpack('m*').first
    data = header.unpack("A100" + # record name
    "A8A8A8" + # mode, uid, gid
    "A12A12" + # size, mtime
    "A8A" + # checksum, typeflag
    "A100" + # linkname
    "A6A2" + # magic, version
    "A32" + # uname
    "A32" + # gname
    "A8A8" + # devmajor, devminor
    "A155") # prefix

    p data

    I got:

    ["data.tar.gz", "0000644", "0000000", "0000000", "00000000260",
    "00000000000", "013315", "0", "", "ustar", "00", "wheel", "wheel",
    "0000000", "0000000", ""]

    --
    Eric Hodel - - http://blog.segment7.net

    I LIT YOUR GEM ON FIRE!
     
    Eric Hodel, Jan 23, 2007
    #6
  7. lijie

    lijie Guest

    2007/1/23, Eric Hodel <>:
    > $ md5 pkgs/sources/sources-0.0.1.gem
    > MD5 (pkgs/sources/sources-0.0.1.gem) = 5e0ab904499bb982a6ef62fe3af0a291


    I am using Gentoo Linux, and I have tested rubygems 0.8.11, 0.9.0, 0.9.1:
    ===================================
    localhost lijie # md5sum
    /var/tmp/portage/rubygems-0.8.11-r5/work/rubygems-0.8.11/pkgs/sources/sources-0.0.1.gem
    2f47b42a162074c9ada0bde7ffebbe5e
    /var/tmp/portage/rubygems-0.8.11-r5/work/rubygems-0.8.11/pkgs/sources/sources-0.0.1.gem
    localhost lijie # md5sum
    /var/tmp/portage/rubygems-0.9.0-r2/work/rubygems-0.9.0/pkgs/sources/sources-0.0.1.gem
    be38c0d87570eb43b9d26f2506497d92
    /var/tmp/portage/rubygems-0.9.0-r2/work/rubygems-0.9.0/pkgs/sources/sources-0.0.1.gem
    localhost lijie # md5sum
    /var/tmp/portage/rubygems-0.9.1/work/rubygems-0.9.1/pkgs/sources/sources-0.0.1.gem
    14459268709919ee6215c8c6f0b2e425
    /var/tmp/portage/rubygems-0.9.1/work/rubygems-0.9.1/pkgs/sources/sources-0.0.1.gem
    ===================================

    Download http://rubyforge.org/frs/download.php/16452/rubygems-0.9.1.tgz
    and check md5sum:
    localhost sources # md5sum rubygems-0.9.1.tgz
    a62314cdb174ccc88a27b8924fa79e4a rubygems-0.9.1.tgz
    localhost sources # md5sum rubygems-0.9.1/pkgs/sources/sources-0.0.1.gem
    cd4ff3e4fc3571c111d90bbf411e270f rubygems-0.9.1/pkgs/sources/sources-0.0.1.gem

    check md5sum of http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
    localhost sources # md5sum rubygems-0.9.0.tgz
    5d496e1f415b8b4033ab867f01d1161f rubygems-0.9.0.tgz
    localhost sources # md5sum rubygems-0.9.0/pkgs/sources/sources-0.0.1.gem
    ca800af09e9544a6bd15b2630ac28b45 rubygems-0.9.0/pkgs/sources/sources-0.0.1.gem

    >
    > Is what I get.
    >
    > If that matches, can you try this script:
    > .......
    > I got:
    >
    > ["data.tar.gz", "0000644", "0000000", "0000000", "00000000260",
    > "00000000000", "013315", "0", "", "ustar", "00", "wheel", "wheel",
    > "0000000", "0000000", ""]


    localhost lijie # ruby test.rb
    ["data.tar.gz", "0000644", "0000000", "0000000", "00000000260",
    "00000000000", "013315", "0", "", "ustar", "00", "wheel", "wheel",
    "0000000", "0000000", ""]

    It looks right.

    I have succeeded installing it before 5 days on Gentoo linux, on 3 computers.

    I am sorry, the network is very bad in these days, and it is very
    difficult to send mails.

    Thank you very much.
     
    lijie, Jan 23, 2007
    #7
  8. lijie

    lijie Guest

    I have copied $RUBY_PATH/site_ruby/*,
    $RUBY_PATH/gems/1.8/specifications/sources-0.0.1.gemspec,
    $RUBY_PATH/gems/1.8/gems/sources-0.0.1 from other computer, then run
    gem:

    localhost distfiles # gem install activesupport
    Attempting local installation of 'activesupport'
    ERROR: Error installing gem activesupport[.gem]: string contains null byte

    localhost distfiles # gem install RedCloth-3.0.4.gem
    Attempting local installation of 'RedCloth-3.0.4.gem'
    ERROR: Error installing gem RedCloth-3.0.4.gem[.gem]: string contains null byte

    How to resolve it?
     
    lijie, Jan 23, 2007
    #8
  9. lijie wrote:
    > 2007/1/23, Eric Hodel <>:
    >> $ md5 pkgs/sources/sources-0.0.1.gem
    >> MD5 (pkgs/sources/sources-0.0.1.gem) = 5e0ab904499bb982a6ef62fe3af0a291

    >
    > I am using Gentoo Linux, and I have tested rubygems 0.8.11, 0.9.0, 0.9.1:
    > ===================================
    > localhost lijie # md5sum
    > /var/tmp/portage/rubygems-0.8.11-r5/work/rubygems-0.8.11/pkgs/sources/sources-0.0.1.gem
    >
    > 2f47b42a162074c9ada0bde7ffebbe5e
    > /var/tmp/portage/rubygems-0.8.11-r5/work/rubygems-0.8.11/pkgs/sources/sources-0.0.1.gem
    >
    > localhost lijie # md5sum
    > /var/tmp/portage/rubygems-0.9.0-r2/work/rubygems-0.9.0/pkgs/sources/sources-0.0.1.gem
    >
    > be38c0d87570eb43b9d26f2506497d92
    > /var/tmp/portage/rubygems-0.9.0-r2/work/rubygems-0.9.0/pkgs/sources/sources-0.0.1.gem
    >
    > localhost lijie # md5sum
    > /var/tmp/portage/rubygems-0.9.1/work/rubygems-0.9.1/pkgs/sources/sources-0.0.1.gem
    >
    > 14459268709919ee6215c8c6f0b2e425
    > /var/tmp/portage/rubygems-0.9.1/work/rubygems-0.9.1/pkgs/sources/sources-0.0.1.gem
    >
    > ===================================
    >
    > Download http://rubyforge.org/frs/download.php/16452/rubygems-0.9.1.tgz
    > and check md5sum:
    > localhost sources # md5sum rubygems-0.9.1.tgz
    > a62314cdb174ccc88a27b8924fa79e4a rubygems-0.9.1.tgz
    > localhost sources # md5sum rubygems-0.9.1/pkgs/sources/sources-0.0.1.gem
    > cd4ff3e4fc3571c111d90bbf411e270f
    > rubygems-0.9.1/pkgs/sources/sources-0.0.1.gem
    >
    > check md5sum of
    > http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
    > localhost sources # md5sum rubygems-0.9.0.tgz
    > 5d496e1f415b8b4033ab867f01d1161f rubygems-0.9.0.tgz
    > localhost sources # md5sum rubygems-0.9.0/pkgs/sources/sources-0.0.1.gem
    > ca800af09e9544a6bd15b2630ac28b45
    > rubygems-0.9.0/pkgs/sources/sources-0.0.1.gem
    >
    >>
    >> Is what I get.
    >>
    >> If that matches, can you try this script:
    >> .......
    >> I got:
    >>
    >> ["data.tar.gz", "0000644", "0000000", "0000000", "00000000260",
    >> "00000000000", "013315", "0", "", "ustar", "00", "wheel", "wheel",
    >> "0000000", "0000000", ""]

    >
    > localhost lijie # ruby test.rb
    > ["data.tar.gz", "0000644", "0000000", "0000000", "00000000260",
    > "00000000000", "013315", "0", "", "ustar", "00", "wheel", "wheel",
    > "0000000", "0000000", ""]
    >
    > It looks right.
    >
    > I have succeeded installing it before 5 days on Gentoo linux, on 3
    > computers.
    >
    > I am sorry, the network is very bad in these days, and it is very
    > difficult to send mails.
    >
    > Thank you very much.
    >
    >

    Is this a RubyGems problem or a Gentoo/Portage problem? There's an open
    bug in Gentoo Bugzilla for the rubygems-0.9.1 version bump -- it can be
    found at

    https://bugs.gentoo.org/show_bug.cgi?id=162463

    You need to list the package in /etc/portage/package.unmask, I think. I
    got it to work on all of my Gentoo boxes.

    --
    M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
    http://borasky-research.blogspot.com/

    If God had meant for carrots to be eaten cooked, He would have given rabbits fire.
     
    M. Edward (Ed) Borasky, Jan 23, 2007
    #9
  10. lijie

    lijie Guest

    2007/1/23, M. Edward (Ed) Borasky <>:
    > Is this a RubyGems problem or a Gentoo/Portage problem? There's an open
    > bug in Gentoo Bugzilla for the rubygems-0.9.1 version bump -- it can be
    > found at
    >
    > https://bugs.gentoo.org/show_bug.cgi?id=162463

    My Gentoo installed from stage3,

    I have re-emerged ruby today, but rubygems emerge failed. I have
    succeeded in installing on 3 computers on Gentoo about 6 days ago, and
    used the same configurations (make.conf).

    content of /etc/make.conf:

    CFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer"
    CHOST="i686-pc-linux-gnu"
    CXXFLAGS="${CFLAGS}"
    MAKEOPTS="-j3"
    ACCEPT_KEYWORDS="x86"
    USE="tk mozdevelop xforms hal nsplugin firefox ffmpeg dvd cdr dvdr svg
    bzip2 fpx gs jpeg2k tiff wmf objc unicode gnome ipv6 -qt -kde -arts
    -eds -cups glc nls cjk apache2 imap acpi truetype nptl freetype pam
    pthreads python userlocales"
    GENTOO_MIRRORS="http://mirror.gentoo.gr.jp"
    PORT_LOGDIR=/var/log/portage
    LINGUAS="zh_CN zh_TW zh en"


    > You need to list the package in /etc/portage/package.unmask, I think. I
    > got it to work on all of my Gentoo boxes.


    This file dose not exist, I install rubygems-0.8.11 like this:
    # emerge rubygems -Dav

    and install rubygems-0.9.1 like this:
    # emerge /usr/portage/dev-ruby/rubygems/rubygems-0.9.1.ebuild

    Thanks.
     
    lijie, Jan 24, 2007
    #10
  11. lijie

    Eric Hodel Guest

    On Jan 23, 2007, at 18:24, lijie wrote:

    > 2007/1/23, M. Edward (Ed) Borasky <>:
    >> Is this a RubyGems problem or a Gentoo/Portage problem? There's an
    >> open
    >> bug in Gentoo Bugzilla for the rubygems-0.9.1 version bump -- it
    >> can be
    >> found at
    >>
    >> https://bugs.gentoo.org/show_bug.cgi?id=162463

    > My Gentoo installed from stage3,
    >
    > I have re-emerged ruby today, but rubygems emerge failed. I have
    > succeeded in installing on 3 computers on Gentoo about 6 days ago, and
    > used the same configurations (make.conf).
    >
    > content of /etc/make.conf:
    >
    > CFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer"


    This may be a source of your problems. Ruby is not guaranteed to
    work with -fomit-frame-pointer:

    http://www.google.com/search?q=ruby fomit-frame-pointer

    >> You need to list the package in /etc/portage/package.unmask, I
    >> think. I
    >> got it to work on all of my Gentoo boxes.

    >
    > This file dose not exist, I install rubygems-0.8.11 like this:
    > # emerge rubygems -Dav
    >
    > and install rubygems-0.9.1 like this:
    > # emerge /usr/portage/dev-ruby/rubygems/rubygems-0.9.1.ebuild


    Try rebuilding ruby with the default build flags first.

    --
    Eric Hodel - - http://blog.segment7.net

    I LIT YOUR GEM ON FIRE!
     
    Eric Hodel, Jan 24, 2007
    #11
  12. Eric Hodel wrote:
    > On Jan 23, 2007, at 18:24, lijie wrote:
    >
    >> 2007/1/23, M. Edward (Ed) Borasky <>:
    >>> Is this a RubyGems problem or a Gentoo/Portage problem? There's an open
    >>> bug in Gentoo Bugzilla for the rubygems-0.9.1 version bump -- it can be
    >>> found at
    >>>
    >>> https://bugs.gentoo.org/show_bug.cgi?id=162463

    >> My Gentoo installed from stage3,
    >>
    >> I have re-emerged ruby today, but rubygems emerge failed. I have
    >> succeeded in installing on 3 computers on Gentoo about 6 days ago, and
    >> used the same configurations (make.conf).
    >>
    >> content of /etc/make.conf:
    >>
    >> CFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer"

    >
    > This may be a source of your problems. Ruby is not guaranteed to work
    > with -fomit-frame-pointer:
    >
    > http://www.google.com/search?q=ruby fomit-frame-pointer
    >
    >>> You need to list the package in /etc/portage/package.unmask, I think. I
    >>> got it to work on all of my Gentoo boxes.

    >>
    >> This file dose not exist, I install rubygems-0.8.11 like this:
    >> # emerge rubygems -Dav
    >>
    >> and install rubygems-0.9.1 like this:
    >> # emerge /usr/portage/dev-ruby/rubygems/rubygems-0.9.1.ebuild

    >
    > Try rebuilding ruby with the default build flags first.
    >
    > --Eric Hodel - - http://blog.segment7.net
    >
    > I LIT YOUR GEM ON FIRE!
    >
    >
    >

    -O3 could also be a problem. I forget whether the Gentoo default
    includes "-fomit-frame-pointer" or not, but the default is *definitely*
    -O2 and not -O3.

    --
    M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
    http://borasky-research.blogspot.com/

    If God had meant for carrots to be eaten cooked, He would have given rabbits fire.
     
    M. Edward (Ed) Borasky, Jan 24, 2007
    #12
  13. lijie

    lijie Guest

    2007/1/24, M. Edward (Ed) Borasky <>:
    > Eric Hodel wrote:
    > > This may be a source of your problems. Ruby is not guaranteed to work
    > > with -fomit-frame-pointer:
    > >
    > > http://www.google.com/search?q=ruby fomit-frame-pointer


    > -O3 could also be a problem. I forget whether the Gentoo default
    > includes "-fomit-frame-pointer" or not, but the default is *definitely*
    > -O2 and not -O3.


    I have removed -formit-frame-pointer and changed -O3 to -O2, then
    re-emerge ruby and rubygems, but nothing changes.

    I have tried all ways that I can think of, reinstall system, set
    system date to 2006-12-25, ... Does the installer use network? my
    network is very bad in these days. perhaps network has caused it.
     
    lijie, Jan 24, 2007
    #13
  14. lijie wrote:
    > 2007/1/24, M. Edward (Ed) Borasky <>:
    >> Eric Hodel wrote:
    >> > This may be a source of your problems. Ruby is not guaranteed to work
    >> > with -fomit-frame-pointer:
    >> >
    >> > http://www.google.com/search?q=ruby fomit-frame-pointer

    >
    >> -O3 could also be a problem. I forget whether the Gentoo default
    >> includes "-fomit-frame-pointer" or not, but the default is *definitely*
    >> -O2 and not -O3.

    >
    > I have removed -formit-frame-pointer and changed -O3 to -O2, then
    > re-emerge ruby and rubygems, but nothing changes.
    >
    > I have tried all ways that I can think of, reinstall system, set
    > system date to 2006-12-25, ... Does the installer use network? my
    > network is very bad in these days. perhaps network has caused it.

    I've forgotten -- what was the symptom again?

    Maybe you should post a bug on Gentoo's Bugzilla
    (http://bugs.gentoo.org). rubygems "stable" is still 0.9.0-r2, so you
    might have hit a bug in their ebuild. They'll at least help you diagnose
    this. If you want, copy me off-list when you file the bug.

    --
    M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
    http://borasky-research.blogspot.com/

    If God had meant for carrots to be eaten cooked, He would have given rabbits fire.
     
    M. Edward (Ed) Borasky, Jan 24, 2007
    #14
  15. lijie

    Eric Hodel Guest

    On Jan 23, 2007, at 20:39, lijie wrote:
    > 2007/1/24, M. Edward (Ed) Borasky <>:
    >> Eric Hodel wrote:
    >> > This may be a source of your problems. Ruby is not guaranteed

    >> to work
    >> > with -fomit-frame-pointer:
    >> >
    >> > http://www.google.com/search?q=ruby fomit-frame-pointer

    >>
    >> -O3 could also be a problem. I forget whether the Gentoo default
    >> includes "-fomit-frame-pointer" or not, but the default is
    >> *definitely*
    >> -O2 and not -O3.

    >
    > I have removed -formit-frame-pointer and changed -O3 to -O2, then
    > re-emerge ruby and rubygems, but nothing changes.
    >
    > I have tried all ways that I can think of, reinstall system, set
    > system date to 2006-12-25, ... Does the installer use network? my
    > network is very bad in these days. perhaps network has caused it.


    Maybe. These errors I've never seen:

    localhost distfiles # gem install activesupport
    Attempting local installation of 'activesupport'
    ERROR: Error installing gem activesupport[.gem]: string contains
    null byte

    localhost distfiles # gem install RedCloth-3.0.4.gem
    Attempting local installation of 'RedCloth-3.0.4.gem'
    ERROR: Error installing gem RedCloth-3.0.4.gem[.gem]: string
    contains null byte

    and should only come from a very confused ruby, or buggy C
    extensions. The C extensions built in to ruby shouldn't have bugs
    this bad.

    --
    Eric Hodel - - http://blog.segment7.net

    I LIT YOUR GEM ON FIRE!
     
    Eric Hodel, Jan 24, 2007
    #15
  16. gems / ruby is broken on gentoo!
    pity that. gentoo people on their forums say its not a portage error
    but a strange error in combination glibc-2.3 autoconf-2.61 and ruby.
    on the other hand gentoo users have no problem in installing ruby +
    gems by hand.

    look here (and no, it's not solved):
    http://forums.gentoo.org/viewtopic-t-522053-highlight-rubygems.html

    and here:
    http://forums.gentoo.org/viewtopic-t-536948-highlight-rubygems.html

    and here:
    http://bugs.gentoo.org/show_bug.cgi?id=161566

    mad world.
    --robert


    2007/1/24, lijie <>
    > 2007/1/24, M. Edward (Ed) Borasky <>:
    > > Eric Hodel wrote:
    > > > This may be a source of your problems. Ruby is not guaranteed to work
    > > > with -fomit-frame-pointer:
    > > >
    > > > http://www.google.com/search?q=ruby fomit-frame-pointer

    >
    > > -O3 could also be a problem. I forget whether the Gentoo default
    > > includes "-fomit-frame-pointer" or not, but the default is *definitely*
    > > -O2 and not -O3.

    >
    > I have removed -formit-frame-pointer and changed -O3 to -O2, then
    > re-emerge ruby and rubygems, but nothing changes.
    >
    > I have tried all ways that I can think of, reinstall system, set
    > system date to 2006-12-25, ... Does the installer use network? my
    > network is very bad in these days. perhaps network has caused it.
    >
    >
     
    Robert Wagner, Mar 9, 2007
    #16
    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. Trevor
    Replies:
    5
    Views:
    602
    Bill Kelly
    Jan 29, 2005
  2. Erik Veenstra
    Replies:
    4
    Views:
    894
    Austin Ziegler
    Feb 4, 2005
  3. Michael Satterwhite

    Can't install rubygems - but getting closer

    Michael Satterwhite, Aug 7, 2006, in forum: Ruby
    Replies:
    1
    Views:
    111
    Michael Greenly
    Aug 7, 2006
  4. Greg Hauptmann
    Replies:
    1
    Views:
    135
    Greg Hauptmann
    Feb 6, 2009
  5. Eric Roscher
    Replies:
    3
    Views:
    391
    Eric Roscher
    Nov 24, 2009
Loading...

Share This Page