首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >在Ruby 1.9.3中安装调试器行缓存时出错

在Ruby 1.9.3中安装调试器行缓存时出错
EN

Stack Overflow用户
提问于 2012-06-06 22:55:35
回答 7查看 23.5K关注 0票数 58

我需要一个项目的debugger-linecache 1.0.1版本,并且在尝试安装时会遇到以下错误。

代码语言:javascript
复制
trunk ☺  gem install debugger-linecache -v '1.0.1'
Building native extensions.  This could take a while...
ERROR:  Error installing debugger-linecache:
    ERROR: Failed to build gem native extension.

        /Users/jordanscales/.rvm/rubies/ruby-1.9.3-p194/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-p194 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=/Users/jordanscales/.rvm/rubies/ruby-1.9.3-p194/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 /Users/jordanscales/.rvm/gems/ruby-1.9.3-p194/gems/debugger-linecache-1.0.1 for inspection.
Results logged to /Users/jordanscales/.rvm/gems/ruby-1.9.3-p194/gems/debugger-linecache-1.0.1/ext/trace_nums/gem_make.out
trunk ☺  

任何帮助都会非常感谢,我一直在寻找,但找不到一个有效的解决方案。

EN

回答 7

Stack Overflow用户

发布于 2012-10-16 19:11:53

这可能对你有帮助,对我很管用。

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

Stack Overflow用户

发布于 2012-12-03 23:19:53

更新/安装gem debugger-ruby_core_source

代码语言:javascript
复制
gem install debugger-ruby_core_source

已在此处更正:https://github.com/cldwalker/debugger-ruby_core_source/pull/7

票数 34
EN

Stack Overflow用户

发布于 2012-06-08 03:15:58

问题是我不正确地使用了gemsets。我知道没有权限是一个问题,因为在RVM下,我不应该需要sudo来安装任何东西。

rvm gemset use global和一个bundle install做到了这一点。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10916784

复制
相关文章

相似问题

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