Ruby on rails 无法安装调试程序
我无法安装debuggar gem 我收到此错误,但我没有ide为什么:Ruby on rails 无法安装调试程序,ruby-on-rails,ruby,Ruby On Rails,Ruby,我无法安装debuggar gem 我收到此错误,但我没有ide为什么: Building native extensions. This could take a while... ERROR: Error installing debugger: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb checking f
Building native extensions. This could take a while...
ERROR: Error installing debugger:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p547 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
--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=/usr/local/rvm/rubies/ruby-1.9.3-p547/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
extconf failed, exit code 1
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p547/gems/debugger-1.5.0 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p547/extensions/x86_64-darwin-13/1.9.1/debugger-1.5.0/gem_make.out
试试看:
bundle update debugger
并保存在您的档案中:
gem 'debugger'
我遇到了同样的问题,这为我解决了问题:
gem update debugger-ruby_core_source
然后,
bundle安装
就可以工作了 有帮助吗?@PaulRichter它安装了,但是我得到了相同的错误,我需要安装debuggar 1.5.1。对不起,你是说它安装了,但是特定的版本(版本1.5.1)没有正确安装?您是否先完成了那篇文章中的gem install debugger-ruby\u core\u source
行?或者,如果您无法实现这一点,我非常喜欢。在约塞米蒂使用rbenv。谢谢工作得很有魅力。“gem安装调试器-v'1.6.6'”现在适用于我。:-)多痛苦啊,红宝石?为什么这个命令会存在。。。如果依赖项已在Gemfile中指定?!!也为我工作:)当bundle update rails
由于调试器而失败时,我发现自己在这里。如回答中所述,试图捆绑更新调试器,但失败了,因为rails已过时,应该先更新…解决方案<代码>捆绑更新rails调试器
:)