首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >安装调试器行缓存时出错:错误:无法生成gem本机扩展

安装调试器行缓存时出错:错误:无法生成gem本机扩展
EN

Stack Overflow用户
提问于 2012-10-28 19:08:04
回答 4查看 10.4K关注 0票数 17

我正在尝试捆绑安装,但它显示上述错误或debugger..Please从终端查找详细错误

代码语言:javascript
复制
Installing debugger-linecache (1.1.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/ruby/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.2-p0 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=/usr/local/ruby/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 files will remain installed in /usr/local/ruby/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.1 for inspection.
Results logged to /usr/local/ruby/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.1/ext/trace_nums/gem_make.out 

An error occured while installing debugger-linecache (1.1.1), and Bundler cannot continue.
Make sure that `gem install debugger-linecache -v '1.1.1'` succeeds before bundling.

如果我在终端中输入ruby-v,我会得到ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

如果我执行gem install debugger-linecache,我仍然会得到相同的错误。如何解决这个问题。请帮帮忙??

EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2012-11-06 17:13:32

我有一个非常类似的错误,但是在ruby 1.9.3上。运行:

代码语言:javascript
复制
gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p286/

让它为我工作。归功于this answer

票数 35
EN

Stack Overflow用户

发布于 2013-06-25 17:38:06

我用simple解决了类似的问题(将Ruby 1.9.3升级到2.0)

代码语言:javascript
复制
bundle update debugger

因此安装了gem版本1.6.0

票数 11
EN

Stack Overflow用户

发布于 2013-04-05 23:49:16

相同的修复,更多的更新

代码语言:javascript
复制
# check ruby version with rvm info
gem install debugger-linecache -v '1.1.2' \
-- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p448
票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13108299

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档