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

K

Kedar Mhaswade

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/.=
 
K

Kedar Mhaswade

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/.=
 
P

Phillip Gawlowski

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.
 
K

Kedar Mhaswade

Phillip Gawlowski wrote in post #970053:
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?
 
P

Phillip Gawlowski

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.
 
P

Peter Vandenabeele

Kedar Mhaswade wrote in post #970055:
Phillip Gawlowski wrote in post #970053:
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
 
K

Kedar Mhaswade

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!
 
P

Peter Vandenabeele

Kedar Mhaswade wrote in post #970472:
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
 
K

Kedar Mhaswade

Peter Vandenabeele wrote in post #970489:
Kedar Mhaswade wrote in post #970472:

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
 
K

Kedar Mhaswade

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/.=
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top