gpt4 book ai didi

ruby-on-rails - Windows 8 64 位 ruby​​-debug-ide 安装 linecache19 由于 gcc -m64 标志错误 : sorry, 未实现:64 位模式未编译而失败

转载 作者:行者123 更新时间:2023-11-30 15:45:25 24 4
gpt4 key购买 nike

我正在按照Is ruby-debug-ide available to be installed on windows with ruby1.9.3?进行Windows安装下载 gems 并开始安装它们。但出现这个 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 扩展的 gem(由于性能问题)

如果您打算继续使用 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,因为并非所有 gems 都已更新为与 Windows 上的 2.0 兼容。

希望有帮助。

关于ruby-on-rails - Windows 8 64 位 ruby​​-debug-ide 安装 linecache19 由于 gcc -m64 标志错误 : sorry, 未实现:64 位模式未编译而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19048571/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com