简体   繁体   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

I am going through the install for windows per Is ruby-debug-ide available to be installed on windows with ruby1.9.3? 我正在按照Windows进行安装。 是否可以在使用ruby1.9.3的Windows上安装ruby-debug-ide? downloaded the gems and begin to install them. 下载了宝石并开始安装它们。 But get this 64 bit error. 但是得到这个64位的错误。 Is there a 32 bit version of linecache19. 是否有linecache19的32位版本。 Do I need a different gcc compiler? 我需要其他的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

Seems you've tried to install a gem (linecache19) on top of JRuby. 似乎您已尝试在JRuby之上安装gem(linecache19)。

JRuby is powered by JVM, and installation of gems that pack C extensions is discourages (due performance issues) JRuby由JVM驱动,不鼓励安装带有C扩展的gems(由于性能问题)

If you plan to continue using JRuby and you're interested in things like debugging and such, I recommend you read JRuby documentation about how to debug with JRuby 如果您打算继续使用JRuby并且对调试之类的东西感兴趣,那么我建议您阅读有关如何使用JRuby进行调试的 JRuby文档。

If you're still interested in install linecache19 (and debugger gem), I recommend you install a version of Ruby that is compatible with C extension compilation, like RubyInstaller: 如果您仍然对安装linecache19(和调试器gem)感兴趣,建议您安装与C扩展编译兼容的Ruby版本,例如RubyInstaller:

http://rubyinstaller.org/downloads http://rubyinstaller.org/downloads

As mentioned in the download page, if you're new to Ruby/Rails world, I suggest you use Ruby 1.9.3 instead of Ruby 2.0 since not all the gems have been updated to be compatible with 2.0 on Windows. 如下载页面所述,如果您是Ruby / Rails世界的新手,我建议您使用Ruby 1.9.3而不是Ruby 2.0,因为并非所有gem都已更新为与Windows 2.0兼容。

Hope that helps. 希望能有所帮助。

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

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