[英]Debugger cannot compile on Ruby 2.0
Originally posted here: " How to use the debugger with Ruby 2.0? " 最初发布在这里:“ 如何在Ruby 2.0中使用调试器? ”
I keep ending up back here, but I have a different problem. 我一直回到这里,但是我遇到了另一个问题。 I don't have the option to change to Byebug right now.
我现在没有选择更改为Byebug的选项。 We are currently stuck on "debugger" for now, and I cannot install it.
我们目前暂时停留在“调试器”上,我无法安装它。
Building native extensions. This could take a while...
ERROR: Error installing debugger:
ERROR: Failed to build gem native extension.
/Users/mbridges/.rbenv/versions/2.0.0-p247/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You 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/mbridges/.rbenv/versions/2.0.0-p247/bin/ruby
/Users/mbridges/.rbenv/versions/2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- debugger/ruby_core_source (LoadError)
from /Users/mbridges/.rbenv/versions/2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
from extconf.rb:16:in `<main>'
Anyone have any ideas? 有人有想法么?
Update: Now Ruby 2.1+ should using byebug instead of debugger. 更新:现在Ruby 2.1+应该使用byebug而不是调试器。
C:\\git\\debugger-ruby_core_source
C:\\git\\debugger-ruby_core_source
C:\\git\\debugger-ruby_core_source\\lib
to C:\\Ruby200\\lib\\ruby\\gems\\2.0.0\\gems\\debugger-ruby_core_source-1.3.2
C:\\git\\debugger-ruby_core_source\\lib
复制到C:\\Ruby200\\lib\\ruby\\gems\\2.0.0\\gems\\debugger-ruby_core_source-1.3.2
gem install debugger
again. gem install debugger
。 I'm now sure why the gems debugger-ruby_core_source didn't copy the lib to that folder, but certainly the debugger need it. 我现在确定为什么gems debugger-ruby_core_source没有将lib复制到该文件夹,但是肯定调试器需要它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.