gem install ruby-debug-ide errors don't give me anything to lookfor.

Discussion in 'Ruby' started by Kedar Mhaswade, Dec 22, 2010.

  1. Hope I am not missing something obvious. I have searched high and low.
    With rvm 1.1.6, ruby 1.9.2-p0 on Ubuntu 10.04, I tried to do:
    gem install -v ruby-debug-ide

    and I get:
    -------------------------------------------------------------------------=
    --
    Building native extensions. This could take a while...
    ERROR: Error installing ruby-debug-ide:
    ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby mkrf_conf.rb
    Building native extensions. This could take a while...
    Gem files will remain installed in
    /usr/local/rvm/gems/ruby-1.9.2-p0@global/gems/ruby-debug-ide-0.4.16 for
    inspection.
    Results logged to
    /usr/local/rvm/gems/ruby-1.9.2-p0@global/gems/ruby-debug-ide-0.4.16/ext/g=
    em_make.out
    =E2=9E=9C ~ more
    /usr/local/rvm/gems/ruby-1.9.2-p0@global/gems/ruby-debug-ide-0.4.16/ext/g=
    em_make.out
    /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby mkrf_conf.rb
    Building native extensions. This could take a while...
    -------------------------------------------------------------------------=
    --

    Exactly what is wrong? I think I have installed all the native library
    packages. But this *error* message is awfully terse.

    Thanks in advance for any help/pointers.

    -Kedar

    -- =

    Posted via http://www.ruby-forum.com/.=
    Kedar Mhaswade, Dec 22, 2010
    #1
    1. Advertising

  2. On Wednesday 22 December 2010 22:45:28 Kedar Mhaswade wrote:
    > Hope I am not missing something obvious. I have searched high and low=
    Stefano Crocco, Dec 22, 2010
    #2
    1. Advertising

  3. >
    > Have you looked at the contents of that file? If so, what does it say?
    > It
    > should contain all the output produced while trying to build the native=


    > extensions.
    >
    > Stefano


    Ugh. I thought I already "more"ed its contents. Pasting them again here:

    =E2=9E=9C ~ more =

    /usr/local/rvm/gems/ruby-1.9.2-p0@global/gems/ruby-debug-ide-0.4.16/ext/g=
    em_make.out
    /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby mkrf_conf.rb
    Building native extensions. This could take a while...


    Yeah, they are surprisingly terse!

    -- =

    Posted via http://www.ruby-forum.com/.=
    Kedar Mhaswade, Dec 22, 2010
    #3
  4. On Wed, Dec 22, 2010 at 2:45 PM, Kedar Mhaswade
    <> wrote:
    >
    > Exactly what is wrong? I think I have installed all the native library
    > packages. But this *error* message is awfully terse.


    Did you install any *-dev packages that ruby-debug-ide might need, too?

    Debian and derivatives don't install those by default.

    --
    Phillip Gawlowski

    Though the folk I have met,
    (Ah, how soon!) they forget
    When I've moved on to some other place,
    There may be one or two,
    When I've played and passed through,
    Who'll remember my song or my face.
    Phillip Gawlowski, Dec 22, 2010
    #4
  5. Phillip Gawlowski wrote in post #970053:
    > On Wed, Dec 22, 2010 at 2:45 PM, Kedar Mhaswade
    > <> wrote:
    >>
    >> Exactly what is wrong? I think I have installed all the native library
    >> packages. But this *error* message is awfully terse.

    >
    > Did you install any *-dev packages that ruby-debug-ide might need, too?
    >
    > Debian and derivatives don't install those by default.
    >

    Thanks. Here is a report on -dev packages:
    dpkg -l | cut -d ' ' -f 3 | grep "dev$"
    autotools-dev
    comerr-dev
    dpkg-dev
    erlang-dev
    krb5-multidev
    libc6-dev
    libcurl4-gnutls-dev
    libgcrypt11-dev
    libglib2.0-dev
    libgnutls-dev
    libgpg-error-dev
    libicu-dev
    libidn11-dev
    libkrb5-dev
    libldap2-dev
    libmysqlclient15-dev
    libncurses5-dev
    libreadline6-dev
    libsqlite3-dev
    libssl-dev
    libstdc++6-4.4-dev
    libtasn1-3-dev
    libusb-dev
    libxml2-dev
    libxslt1-dev
    libyaml-dev
    linux-libc-dev
    makedev
    manpages-dev
    ruby1.8-dev
    system-config-printer-udev
    udev
    zlib1g-dev

    Aren't these enough? Perhaps not. Which ones do I need to install?

    --
    Posted via http://www.ruby-forum.com/.
    Kedar Mhaswade, Dec 22, 2010
    #5
  6. On Wed, Dec 22, 2010 at 4:23 PM, Kedar Mhaswade
    <> wrote:
    >
    > Aren't these enough? Perhaps not. Which ones do I need to install?


    In theory, the documentation for the gem should tell you (since I have
    no Debian-ish distro ready, I can't help any more; I do my debugging
    with plenty of puts and pp statements, anyway. ;) ).
    --
    Phillip Gawlowski

    Though the folk I have met,
    (Ah, how soon!) they forget
    When I've moved on to some other place,
    There may be one or two,
    When I've played and passed through,
    Who'll remember my song or my face.
    Phillip Gawlowski, Dec 22, 2010
    #6
  7. Kedar Mhaswade wrote in post #970055:
    > Phillip Gawlowski wrote in post #970053:
    >> On Wed, Dec 22, 2010 at 2:45 PM, Kedar Mhaswade
    >> <> wrote:
    >>>
    >>> Exactly what is wrong? I think I have installed all the native library
    >>> packages. But this *error* message is awfully terse.

    >>
    >> Did you install any *-dev packages that ruby-debug-ide might need, too?
    >>
    >> Debian and derivatives don't install those by default.
    >>

    > Thanks. Here is a report on -dev packages:
    > dpkg -l | cut -d ' ' -f 3 | grep "dev$"
    > autotools-dev
    > comerr-dev
    > dpkg-dev
    > erlang-dev
    > krb5-multidev
    > libc6-dev
    > libcurl4-gnutls-dev
    > libgcrypt11-dev
    > libglib2.0-dev
    > libgnutls-dev
    > libgpg-error-dev
    > libicu-dev
    > libidn11-dev
    > libkrb5-dev
    > libldap2-dev
    > libmysqlclient15-dev
    > libncurses5-dev
    > libreadline6-dev
    > libsqlite3-dev
    > libssl-dev
    > libstdc++6-4.4-dev
    > libtasn1-3-dev
    > libusb-dev
    > libxml2-dev
    > libxslt1-dev
    > libyaml-dev
    > linux-libc-dev
    > makedev
    > manpages-dev
    > ruby1.8-dev
    > system-config-printer-udev
    > udev
    > zlib1g-dev
    >
    > Aren't these enough? Perhaps not. Which ones do I need to install?


    I just tried this. On 1.8.7 it took only a few seconds here.
    I ran it from the "system ruby" side (not really using rvm).

    peterv@ASUS:~$ rvm use
    Now using system ruby. # that is 1.8.7p... (Ubuntu 10.04)

    Actually, the _exact_ command you show in your first mail,
    with the -v option, fails here:

    peterv@ASUS:~$ gem install -v ruby-debug-ide
    ERROR: While executing gem ... (ArgumentError)
    Illformed requirement ["ruby-debug-ide"]
    peterv@ASUS:~$ sudo gem install -v ruby-debug-ide
    ERROR: While executing gem ... (ArgumentError)
    Illformed requirement ["ruby-debug-ide"]

    peterv@ASUS:~$ sudo gem install ruby-debug-ide
    Building native extensions. This could take a while...
    Successfully installed ruby-debug-ide-0.4.16
    1 gem installed
    Installing ri documentation for ruby-debug-ide-0.4.16...
    Installing RDoc documentation for ruby-debug-ide-0.4.16...

    ...

    My list of related libraries (split up installed ones
    and not installed ones):

    peterv@ASUS:~$ dpkg -l | egrep '^ii' | cut -d ' ' -f 3 | grep "dev$"
    autotools-dev
    comerr-dev
    dpkg-dev
    krb5-multidev
    libc6-dev
    libcurl4-gnutls-dev
    libexpat1-dev
    libgcrypt11-dev
    libgnutls-dev
    libgpg-error-dev
    libice-dev
    libidn11-dev
    libkrb5-dev
    libldap2-dev
    libmysqlclient-dev
    libncurses5-dev
    libpq-dev
    libpthread-stubs0-dev
    libreadline6-dev
    libsm-dev
    libsqlite3-dev
    libssl-dev
    libstdc++6-4.4-dev
    libtasn1-3-dev
    libx11-dev
    libxau-dev
    libxcb1-dev
    libxdmcp-dev
    libxml2-dev
    libxslt1-dev
    libxt-dev
    libyaml-dev
    linux-libc-dev
    makedev
    manpages-dev
    ruby1.8-dev
    system-config-printer-udev
    udev
    x11proto-core-dev
    x11proto-input-dev
    x11proto-kb-dev
    xserver-xorg-input-evdev
    xserver-xorg-video-fbdev
    xtrans-dev
    zlib1g-dev
    peterv@ASUS:~$ dpkg -l | egrep '^u' | cut -d ' ' -f 3 | grep "dev$"

    So this was on ruby 1.8.7.

    Looking at the file, that may make a difference ...
    (you are on rvm 1.9.2)

    peterv@ASUS:/usr/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/ext$ cat
    mkrf_conf.rb

    ruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' ==
    RUBY_ENGINE)
    unless jruby
    require 'rubygems'
    require 'rubygems/command.rb'
    require 'rubygems/dependency_installer.rb'

    begin
    Gem::Command.build_args = ARGV
    rescue NoMethodError
    end

    inst = Gem::DependencyInstaller.new
    begin
    if RUBY_VERSION < "1.9"
    inst.install "ruby-debug-base", '>=0.10.4'
    else
    inst.install "ruby-debug-base19", '>=0.11.24'
    end
    rescue
    exit(1)
    end
    end

    # create dummy rakefile to indicate success
    f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
    f.write("task :default\n")
    f.close


    Trying in ruby 1.9.2 now ....

    For some reason or another ... this takes forever
    (it worked now, but took more than a minute to compile
    this now ???). But it worked.

    peterv@ASUS:~$ gem install ruby-debug-ide
    Building native extensions. This could take a while...
    Successfully installed ruby-debug-ide-0.4.16
    1 gem installed
    Installing ri documentation for ruby-debug-ide-0.4.16...
    Installing RDoc documentation for ruby-debug-ide-0.4.16...

    Just in case you need to go deep into the build, these kind of
    files may give hints. Particularly this file:

    $ cd ~/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.24
    $ less ext/ruby_debug/mkmf.log

    will probably give a hint.

    In my case of a succeeded build, these are the binary files (object and
    shared object).

    peterv@ASUS:~/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.24$
    find . -exec file '{}' \; | egrep -v '(XML|ASCII|data|directory|ruby
    script|ISO)' | grep debug
    /lib/ruby_debug.so: ELF 32-bit LSB shared object, Intel 80386, version
    1 (SYSV), dynamically linked, not stripped
    /ext/ruby_debug/mkmf.log: UTF-8 Unicode Pascal program text, with very
    long lines
    /ext/ruby_debug/ruby_debug.o: ELF 32-bit LSB relocatable, Intel 80386,
    version 1 (SYSV), not stripped
    /ext/ruby_debug/breakpoint.o: ELF 32-bit LSB relocatable, Intel 80386,
    version 1 (SYSV), not stripped
    /ext/ruby_debug/ruby_debug.so: ELF 32-bit LSB shared object, Intel
    80386, version 1 (SYSV), dynamically linked, not stripped
    peterv@ASUS:~/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.24$
    less ext/ruby_debug/mkmf.log

    HTH,

    Peter

    --
    Posted via http://www.ruby-forum.com/.
    Peter Vandenabeele, Dec 22, 2010
    #7
  8. > Peter Vandenabeele wrote in post #970154:

    Thanks Peter, for writing this up. It sure helps. I am still getting the
    same errors even after doing everything possible, but I have something
    to work on.

    > My list of related libraries (split up installed ones
    > and not installed ones):
    > ...


    > Just in case you need to go deep into the build, these kind of
    > files may give hints. Particularly this file:
    >
    > $ cd ~/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.24
    > $ less ext/ruby_debug/mkmf.log


    Lucky you. You got to this point. I don't get to this point no matter
    what I do :(

    >
    > will probably give a hint.
    >
    > In my case of a succeeded build, these are the binary files (object and
    > shared object).
    >
    > peterv@ASUS:~/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.24$
    > find . -exec file '{}' \; | egrep -v '(XML|ASCII|data|directory|ruby
    > script|ISO)' | grep debug
    > ./lib/ruby_debug.so: ELF 32-bit LSB shared object, Intel 80386, version
    > 1 (SYSV), dynamically linked, not stripped
    > ./ext/ruby_debug/mkmf.log: UTF-8 Unicode Pascal program text, with very
    > long lines
    > ./ext/ruby_debug/ruby_debug.o: ELF 32-bit LSB relocatable, Intel 80386,
    > version 1 (SYSV), not stripped
    > ./ext/ruby_debug/breakpoint.o: ELF 32-bit LSB relocatable, Intel 80386,
    > version 1 (SYSV), not stripped
    > ./ext/ruby_debug/ruby_debug.so: ELF 32-bit LSB shared object, Intel
    > 80386, version 1 (SYSV), dynamically linked, not stripped
    > peterv@ASUS:~/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.24$
    > less ext/ruby_debug/mkmf.log
    >
    > HTH,
    >
    > Peter


    Thanks!

    --
    Posted via http://www.ruby-forum.com/.
    Kedar Mhaswade, Dec 24, 2010
    #8
  9. Kedar Mhaswade wrote in post #970472:
    >> Peter Vandenabeele wrote in post #970154:
    >> Just in case you need to go deep into the build, these kind of
    >> files may give hints. Particularly this file:
    >>
    >> $ cd ~/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.24
    >> $ less ext/ruby_debug/mkmf.log

    >
    > Lucky you. You got to this point. I don't get to this point no matter
    > what I do :(


    Hmmm, just a few other ideas ... (shooting in the dark here ...).

    * did you try on 1.8.7 or with rvm use system?
    * The process must have done "something" that could be traceable
    and tell you which library or .h file is missing ...

    Maybe try to find all modified files there just after an unsuccessful
    build ? This will list all files that where modified less than 5 minutes
    ago (and removing the innocent /doc/ files):

    ~/.rvm$ find . -mmin -5 | grep -v '/doc/'
    /rubies/ruby-1.9.2-p0/include/ruby-1.9.1
    /rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby-1.9.2-p0
    /rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby-1.9.2-p0/vm_exec.h
    ...

    HTH,

    Peter

    --
    Posted via http://www.ruby-forum.com/.
    Peter Vandenabeele, Dec 24, 2010
    #9
  10. Peter Vandenabeele wrote in post #970489:
    > Kedar Mhaswade wrote in post #970472:
    >>> Peter Vandenabeele wrote in post #970154:
    >>> Just in case you need to go deep into the build, these kind of
    >>> files may give hints. Particularly this file:
    >>>
    >>> $ cd ~/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.24
    >>> $ less ext/ruby_debug/mkmf.log

    >>
    >> Lucky you. You got to this point. I don't get to this point no matter
    >> what I do :(

    >
    > Hmmm, just a few other ideas ... (shooting in the dark here ...).
    >
    > * did you try on 1.8.7 or with rvm use system?
    > * The process must have done "something" that could be traceable
    > and tell you which library or .h file is missing ...
    >


    It's not clear what is missing.
    I have reproduced this problem on another system.
    This has only 1.9.2-p136 (the latest installed).

    I am surprised that it's only me.

    :(

    -Kedar

    > Maybe try to find all modified files there just after an unsuccessful
    > build ? This will list all files that where modified less than 5 minutes
    > ago (and removing the innocent /doc/ files):
    >
    > ~/.rvm$ find . -mmin -5 | grep -v '/doc/'
    > ./rubies/ruby-1.9.2-p0/include/ruby-1.9.1
    > ./rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby-1.9.2-p0
    > ./rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby-1.9.2-p0/vm_exec.h
    > ...
    >
    > HTH,
    >
    > Peter


    --
    Posted via http://www.ruby-forum.com/.
    Kedar Mhaswade, Dec 27, 2010
    #10
  11. SOLVED (perhaps) Re: gem install ruby-debug-ide errors don't give meanything to look for.

    Here's a solution that worked:

    http://kedarm.posterous.com/an-rvm-observation

    Kedar Mhaswade wrote in post #970034:
    > Hope I am not missing something obvious. I have searched high and low.
    > With rvm 1.1.6, ruby 1.9.2-p0 on Ubuntu 10.04, I tried to do:
    > gem install -v ruby-debug-ide
    >
    > and I get:
    > -----------------------------------------------------------------------=

    ----
    > Building native extensions. This could take a while...
    > ERROR: Error installing ruby-debug-ide:
    > ERROR: Failed to build gem native extension.
    >
    > /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby mkrf_conf.rb
    > Building native extensions. This could take a while...
    > Gem files will remain installed in
    > /usr/local/rvm/gems/ruby-1.9.2-p0@global/gems/ruby-debug-ide-0.4.16 for=


    > inspection.
    > Results logged to
    > =


    /usr/local/rvm/gems/ruby-1.9.2-p0@global/gems/ruby-debug-ide-0.4.16/ext/g=
    em_make.out
    > =E2=9E=9C ~ more
    > =


    /usr/local/rvm/gems/ruby-1.9.2-p0@global/gems/ruby-debug-ide-0.4.16/ext/g=
    em_make.out
    > /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby mkrf_conf.rb
    > Building native extensions. This could take a while...
    > -----------------------------------------------------------------------=

    ----
    >
    > Exactly what is wrong? I think I have installed all the native library
    > packages. But this *error* message is awfully terse.
    >
    > Thanks in advance for any help/pointers.
    >
    > -Kedar


    -- =

    Posted via http://www.ruby-forum.com/.=
    Kedar Mhaswade, Dec 27, 2010
    #11
    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. yawnmoth
    Replies:
    97
    Views:
    4,702
    Bent C Dalager
    Feb 27, 2009
  2. Géraud Contisouzas
    Replies:
    1
    Views:
    117
    Victor Grey
    Sep 13, 2006
  3. S P Arif Sahari Wibowo
    Replies:
    2
    Views:
    118
    Ryan Davis
    Jul 30, 2009
  4. Tomasz Romanowski
    Replies:
    2
    Views:
    160
    Tomasz Romanowski
    Jun 3, 2010
  5. Iñaki Baz Castillo
    Replies:
    1
    Views:
    156
    Iñaki Baz Castillo
    Feb 28, 2011
Loading...

Share This Page