0

我知道这是现在每个人都遇到的问题之一,他们中的许多人已经找到了解决这个问题的方法。不幸的是,我已经尝试了所有解决方案,但它们似乎都不适用于我的系统。

当我做

gem install linecache19

我收到此错误,如下所示

gem install linecache19
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
The system cannot find the path specified.
ERROR:  Error installing linecache19:
    ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe extconf.rb
checking for vm_core.h... no
C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.
rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for vm_core.h... yes
checking for version.h... yes
creating Makefile


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/linecache
19-0.5.13 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/linecache19-0.5.13/ext/tra
ce_nums/gem_make.out
4

1 回答 1

3

使用debugger-linecache,它只是 linecache19 的更新工作分支。您不会遇到像您遇到的那样的安装问题,因为它不再是作为 C 扩展构建的,它是 100% ruby​​。

gem install debugger-linecache

希望能帮助到你。

于 2013-06-25T10:24:55.720 回答