我无法安装调试器以在我的 ruby 文件中工作。任何人都可以看到问题是什么?
我在 file.rb 的顶部做了“需要调试器”,运行时出现了这个错误ruby file.rb
rubygems/custom_require.rb:36:in `require': cannot load such file -- debugger (LoadError)
我gem install debugger
在我的系统上做了,但收到了这个错误消息。
ERROR: Error installing debugger:
ERROR: Failed to build gem native extension.
/Users/mm/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-rc1 provided with debugger-ruby_core_source gem.
**************************************************************************
*** 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/michaeljohnmitchell/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
当我运行 gem 环境时,我得到
- 红宝石版本:1.8.10
- 红宝石版本:1.9.3(2011-09-23 补丁级别 -1)[x86_64-darwin10.8.0]
- 安装目录:/Users/michaeljohnmitchell/.rvm/gems/ruby-1.9.3-rc1@global
- RUBY 可执行文件:/Users/michaeljohnmitchell/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby
- 可执行目录:/Users/michaeljohnmitchell/.rvm/gems/ruby-1.9.3-rc1@global/bin
- 红宝石平台:
- 红宝石
- x86_64-darwin-10
- 宝石路径:
- /Users/mm/.rvm/gems/ruby-1.9.3-rc1@global
- 宝石配置:
- :update_sources => 真
- :详细 => 真
- :基准 => 假
- :回溯 => 假
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org/", "http://gems.github.com/"]
- 远程资源: