无法在ruby193上安装linecache19 gem

时间:2013-06-24 11:08:40

标签: ruby-on-rails ruby gem

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

当我做的时候

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

1 个答案:

答案 0 :(得分:3)

使用debugger-linecache,它只是linecache19的更新工作分支。你不会遇到类似你所拥有的安装问题,因为它不再构建为C扩展,它是100%的红宝石。

gem install debugger-linecache

希望它有所帮助。