-
Notifications
You must be signed in to change notification settings - Fork 80
Trying to build ruby_debug.so fails on debugger/ruby_core_source #9
Comments
It seems you're running |
Are there recommended commands for installing the dependencies? I'm all for a self-contained gem; I I logged a new bug (11 I think), but it's a dup of bug 1 -- I cobbled together a fix by pointing at all the |
I'm not sure I understand what environment you're running in. If you |
As for bug 1, it's a known issue, patches welcome :) |
I reinstalled the gems following http://stackoverflow.com/a/9056783 The binary gem builds this time without any interference. May I suggest |
I don't understand why you used the stackoverflow link when I said I'm open to making ruby-debug-base available but I need to understand your use case. If you require ruby-debug-base you don't load anything from the rest of ruby-debug. As for dependencies, ruby-debug-base still depends on debugger-linecache and debugger-ruby_core_source. I need compelling reason beyond not wanting to download columnize. |
Ok. If you're using debugger to build these different versions, note that it only works for 1.9.2 and 1.9.3. I don't see any blockers on using ruby-debug-base if you're manually building debugger and its dependencies. I don't know when Debugger.start got renamed, must have happened before I forked. |
I'm trying to use this fork to get the Komodo Ruby debugger working with 1.9.3
Trying to run 'ruby extconf.rb' with ruby 1.9.3-p125 gives this error:
'/home/ericp/opt/ruby-1.9.3-p125/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require': cannot load such file -- debugger/ruby_core_source (LoadError) from /home/ericp/opt/ruby-1.9.3-p125/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'from extconf.rb:16:in `
There is no ruby_core_source.rb in the debugger/lib/debugger dir
I made the following changes to extconf.rb:
Index: /home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/extconf.rb
index 7ebeedc..ed53538 100644
--- a/ext/ruby_debug/extconf.rb
+++ b/ext/ruby_debug/extconf.rb
@@ -13,7 +13,14 @@ unless ARGV.any? {|arg| arg.include?('--with-ruby-include') }
end
require "mkmf"
-require "debugger/ruby_core_source"
+begin
+rescue LoadError
+end
require 'fileutils'
if RUBY_VERSION < "1.9"
@@ -58,7 +65,7 @@ current_dir = File.dirname(FILE)
end
dir_config("ruby")
-if !Debugger::RubyCoreSource.create_makefile_with_core(hdrs, "ruby_debug")
+if !RubyCoreSource.create_makefile_with_core(hdrs, "ruby_debug")
STDERR.print("Makefile creation failed\n")
STDERR.print("*************************************************************\n\n")
STDERR.print(" NOTE: If your headers were not found, try passing\n")
, and managed to build a ruby_debug.so with only two warnings::
ruby_debug $ make
compiling ruby_debug.c
ruby_debug.c: In function ‘context_jump’:
ruby_debug.c:2393: warning: comparison between signed and unsigned
ruby_debug.c:2407: warning: comparison between signed and unsigned
compiling breakpoint.c
linking shared-object ruby_debug.so
I'll report back on results of integrating that .so into the Komodo debugger.
The text was updated successfully, but these errors were encountered: