ruby - 在 Ruby 1.9.3 中安装 debugger-linecache 时出错

标签 ruby rubygems gem ruby-1.9.3

我的项目需要 debugger-linecache 1.0.1 版,但在尝试安装时遇到以下错误。

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 ☺  

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

最佳答案

这可能对你有帮助,对我有用

gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p286/

关于ruby - 在 Ruby 1.9.3 中安装 debugger-linecache 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10916784/

相关文章:

ruby - 为什么我不能用 rails 4.0.0.rc1 (ruby 2.0) 安装 postgresql

ruby - 如何阻止上帝留下陈旧的 Resque 工作流程?

ruby - 使用 rspec 在 ruby​​ gem 测试中加载 fixture

ruby - 无法在 mac 上为 ruby​​ 安装 Mechanize

ruby-on-rails - 回形针 gem - "Image has contents that are not what they are reported to be"错误

ruby - 为什么模块 `ClassMethods` 在同一个命名空间中定义和扩展?

ruby - Firefox 无法打开 - cron、ruby、firewatir

ruby-on-rails - 使用 `rake test` 时出现问题

ruby - 从 Ruby 中的用户输入字符串中提取多个整数?

ruby-on-rails - 如何让外部库(gems)显示在 Rubymine 的项目 View 中?