2013-09-27 21 views
0

我正在通過安裝windows for Is ruby-debug-ide available to be installed on windows with ruby1.9.3?下載了gem並開始安裝它們。但得到這個64位錯誤。是否有32位版本的linecache19。我需要一個不同的gcc編譯器嗎?Windows 8 64位ruby-debug-ide安裝linecache19由於gcc -m64標誌錯誤而失敗:對不起,未實現:64位模式未編譯

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 
+0

您是否安裝了64位'gcc'? – tadman

+0

我抓住了一個http://sourceforge.net/projects/mingw-w64/工具鏈,針對Win 64並安裝。 set path = C:\ Utils \ mingw64 \ x86_64-w64-mingw32 \ bin;%path%set path = C:\ Utils \ mingw64 \ libexec \ gcc \ x86_64-w64-mingw32 \ 4.7.0;%path%copy stdint .h和_mingw.h從C:\ Utils \ mingw64 \ mingw \ include到C:\ JRuby \ lib \ native \ include \ ruby​​,然後從http://ftp.ruby-lang.org/pub下載ruby源代碼/ruby/1.9/現在我回到原始的錯誤檢查vm_core.h ...沒有 – rupweb

+0

你確定你的32位編譯器不是第一個在你的路徑? – tadman

回答

1

似乎您已經嘗試在JRuby頂部安裝gem(linecache19)。

JRuby是由JVM供電,和寶石的安裝中包裝C擴展是不鼓勵(由於性能問題)

如果您打算繼續使用JRuby和你感興趣的東西像調試和這樣的,我建議你閱讀how to debug with JRuby

JRuby的文檔如果你仍然感興趣安裝linecache19(和調試器的寶石),我建議你安裝一個Ruby的版本是與C擴展編譯兼容,像RubyInstaller:

http://rubyinstaller.org/downloads

正如在下載頁面中提到的,如果您是Ruby/Rails世界的新手,我建議您使用Ruby 1.9.3而不是Ruby 2.0,因爲並非所有的gem都已更新爲與Windows兼容。

希望有所幫助。

相關問題