由于gcc -m64标志错误导致Windows 8 64位ruby-debug-ide安装linecache19失败:抱歉,未实现:64位模式未编译

时间:2013-09-27 10:30:54

标签: ruby-on-rails c ruby gcc windows-8

我正在浏览每个Is ruby-debug-ide available to be installed on windows with ruby1.9.3?的Windows安装下载的宝石并开始安装它们。但是得到这个64位错误。是否有32位版本的linecache19。我需要一个不同的gcc编译器吗?

C:\JRuby\lib\ruby\gems\shared>gem install linecache19-0.5.13.gem
Building native extensions.  This could take a while...
ERROR:  Error installing linecache19-0.5.13.gem:
        ERROR: Failed to build gem native extension.

        C:/JRuby/bin/jruby.exe extconf.rb
C:/JRuby/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and deprecated Config.
checking for vm_core.h... no
checking for vm_core.h... yes
checking for version.h... yes
creating Makefile

make
gcc -I. -IC:/JRuby/lib/native/include -IC:/JRuby/lib/native/include/ruby -I. -DHAVE_VM_CORE_H -DHAVE_VERSION_H -IC:/JRuby/lib/native/include
/ruby-1.9.3-p392 -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions    -m64 -march=native -mtune=native -c trace_nums.c
trace_nums.c:1:0: sorry, unimplemented: 64-bit mode not compiled in

1 个答案:

答案 0 :(得分:1)

似乎你试图在JRuby之上安装gem(linecache19)。

JRuby由JVM提供支持,并且不鼓励安装包含C扩展的宝石(由于性能问题)

如果您打算继续使用JRuby并且您对调试等事情感兴趣,我建议您阅读有关how to debug with JRuby的JRuby文档

如果你仍然对安装linecache19(和调试器gem)感兴趣,我建议你安装一个与C扩展编译兼容的Ruby版本,比如RubyInstaller:

http://rubyinstaller.org/downloads

如下载页面所述,如果您是Ruby / Rails世界的新手,我建议您使用Ruby 1.9.3而不是Ruby 2.0,因为并非所有的gem都已更新为与Windows上的2.0兼容。 / p>

希望有所帮助。