Debugger - Failed to build gem native extension ruby 1.8.7 -
working on outdated project need debug can't manage install debugger.
ruby -v # => ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin12.3.0] rails -v # => rails 2.3.17 gem install debugger installing debugger (1.6.1) gem::installer::extensionbuilderror: error: failed build gem native extension. /users/lfender/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/users/lfender/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb:16:in `require': no such file load -- debugger/ruby_core_source (loaderror) extconf.rb:16 gem files remain installed in /users/lfender/.rvm/gems/ruby-1.8.7-p352@nhg/gems/debugger-1.6.1 inspection. results logged /users/lfender/.rvm/gems/ruby-1.8.7-p352@nhg/gems/debugger-1.6.1/ext/ruby_debug/gem_make.out error occurred while installing debugger (1.6.1), , bundler cannot continue. make sure `gem install debugger -v '1.6.1'` succeeds before bundling. the issue preventing me debugging failing specs. appreciated!
it seems debugger ruby 1.9.2 & 1.9.3, , ruby-debug might better suited ruby 1.8.
you try using ruby-debug with:
gem install ruby-debug from readme:
there 2 ways of running ruby-debug.
rdebug executable:
$ rdebug <your-script>
when start script way, debugger stop @ first line of code in script file. able set breakpoints.
ruby-debug api
the second way use ruby-debug api interrupt code execution @ run time.
require 'ruby-debug' ; debugger.start ... def your_method ... debugger ... end or
require 'ruby-debug' ; debugger.start ... debugger end when kernel#debugger method executed, debugger activated , able inspect , step through code.
Comments
Post a Comment