簡體   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