繁体   English   中英

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

[英]Windows 8 64 bit ruby-debug-ide install of linecache19 failing due to gcc -m64 flag error: sorry, unimplemented: 64-bit mode not compiled in

我正在按照Windows进行安装。 是否可以在使用ruby1.9.3的Windows上安装ruby-debug-ide? 下载了宝石并开始安装它们。 但是得到这个64位的错误。 是否有linecache19的32位版本。 我需要其他的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

似乎您已尝试在JRuby之上安装gem(linecache19)。

JRuby由JVM驱动,不鼓励安装带有C扩展的gems(由于性能问题)

如果您打算继续使用JRuby并且对调试之类的东西感兴趣,那么我建议您阅读有关如何使用JRuby进行调试的 JRuby文档。

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

http://rubyinstaller.org/downloads

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

希望能有所帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM