Kedar M. wrote in post #970055:
Phillip G. wrote in post #970053:
On Wed, Dec 22, 2010 at 2:45 PM, Kedar M.
[email protected] 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