#14 ✓invalid

dpkg-gem fails to run on ruby 1.8.7

Reported by rasjani | May 25th, 2009 @ 08:52 AM

I have newest ubuntu ruby packages. Installation of dpkg-tools went just fine but when i try to bootstrap first package i get following error:

[sbox-XXXXXX-i386: ~/src/ruby/foobar/temp] > dpkg-gem dpkg-tools Ignoring LoadError due to too-new Rubygems package :-(
/home/rasjani/.gems-i386/gems/rake-0.8.7/lib/rake.rb:2503:in const_missing': uninitialized constant Gem::RemoteInstaller (NameError)

from /home/rasjani/.gems-i386/gems/dpkg-tools-0.3.5/lib/dpkg-tools/package/gem/setup.rb:30:in `specs_n_sources_for_name'
from /home/rasjani/.gems-i386/gems/dpkg-tools-0.3.5/lib/dpkg-tools/package/gem/setup.rb:34:in `spec_n_source_for_name'
from /home/rasjani/.gems-i386/gems/dpkg-tools-0.3.5/lib/dpkg-tools/package/gem/setup.rb:78:in `from_name'
from /home/rasjani/.gems-i386/gems/dpkg-tools-0.3.5/lib/dpkg-tools/package/gem.rb:16:in `setup_from_name'
from /home/rasjani/.gems-i386/gems/dpkg-tools-0.3.5/lib/dpkg-tools/command_line.rb:134:in `run'
from /home/rasjani/.gems-i386/gems/dpkg-tools-0.3.5/bin/dpkg-gem:6
from /home/rasjani/.gems-i386/bin/dpkg-gem:19:in `load'
from /home/rasjani/.gems-i386/bin/dpkg-gem:19

[sbox-XXXXXX-i386: ~/src/ruby/foobar/temp] >

I have following gems installed on my environment along with their versions:

builder (2.1.2)
dpkg-tools (0.3.5)
hoe (1.12.2)
log4r (1.0.5)
nokogiri (1.2.3)
rake (0.8.7)
raven (1.2.4)
rubyforge (1.0.3)

Ruby version is 1.8.7 (patch level 72), and rubygems is 1.3.1 (both installed from debs)

Comments and changes to this ticket

  • Matt Patterson

    Matt Patterson May 25th, 2009 @ 03:19 PM

    • State changed from “new” to “invalid”

    It's because you're using a too-new version of Rubygems. 0.3.5 needs Rubygems 0.9.4 (dpkg-tools needs to delve fairly deep into the internals).

    There's a new version, which I'll try to ship this week, which works with Rubygems 1.3.x (and will have a better documented bootstrap process)

    I haven't done any testing with 1.8.7, so if you have any problems with 1.8.7 and Rubygems 0.9.4 please file a new ticket.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

OS package building made less painful