我在其他SO問題(例如No source for ruby-1.9.2-p321 provided with debugger-ruby_core_source gem)以及Google搜索中看到過非常類似的問題,但目前爲止這些問題都沒有幫助。ruby-2.0.0-p451沒有ruby_core_source提供的源代碼gem
我正在使用OSX Mavericks(第一次使用mac用戶)和rbenv(第一次使用它)。我已經克隆了一個Rails項目,我以前在另一臺筆記本電腦上運行過(Ubuntu & rvm)。
rbenv version
:2.0.0-P451(我手動安裝)
當我嘗試bundle install
,我得到如下:
...
Using debugger-ruby_core_source (1.3.1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/macuser/.rbenv/versions/2.0.0-p451/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-2.0.0-p451 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/macuser/.rbenv/versions/2.0.0-p451/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/
Gem files will remain installed in /Users/macuser/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/debugger-1.6.5 for inspection.
Results logged to /Users/macuser/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/debugger-1.6.5/ext/ruby_debug/gem_make.out
An error occurred while installing debugger (1.6.5), and Bundler cannot continue.
Make sure that `gem install debugger -v '1.6.5'` succeeds before bundling.
所以我再嘗試運行gem install debugger -v '1.6.5'
,會拋出基本與上面相同的錯誤。
從周圍尋找,這裏的一些事情我已經嘗試過失敗:
也許還有其他一些......但似乎沒有任何工作。
更新:將我的rbenv本地環境切換到ruby 2.1.0,它工作。沒有解決底層問題,但這是好的我猜
你可以嘗試以下嗎? 'gem install debugger -v'1.6.5' - --with-system-v8' – MrYoshiji
仍然給出同樣的錯誤 – stoneage