有什么建议吗?
C:\Users\Steve\barcoden>gem install ruby-debug
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug:
ERROR: Failed to build gem native extension.
C:/Ruby/bin/ruby.exe extconf.rb
creating Makefile
make
'make' is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/linecache-0.43
for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/linecache-0.43/ext/gem_make.out
C:\Users\Steve\barcoden>
最佳答案
看起来,您缺少用于构建 native 扩展的健全构建环境。一个简短的解释:除了用 ruby 编写的库(有很多),还存在绑定(bind)到用 c 编写的低级代码的库(一些 XML 解析器、RMagick、MySQL..)。它们依赖于安装它们的低级对应物,它们还需要一个 c 编译器来构建它们的接口(interface)部分。
因此,如果您没有安装像 gcc 这样的 c 编译器和整个构建环境(包括 make、autoconf 和整个 bla),您将无法构建这些 native 扩展。
希望对您有所帮助 :-)
关于ruby-on-rails - 在 Windows 上安装 Ruby-Debug 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1972549/