在 Windows 上安装 Ruby-Debug 的问题 [英] Problem Installing Ruby-Debug on Windows
问题描述
有什么建议吗?
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>
推荐答案
看起来,您缺少用于构建本机扩展的健全构建环境.一个简短的解释:除了用 ruby 编写的库(有很多)之外,还存在绑定到用 c 编写的低级代码的库(一些 XML 解析器、RMagick、MySQL ..).它们依赖于安装低级对应物,并且还需要一个 c 编译器来构建它们的接口部分.
as it seems, you're missing a sane build environment for building native extensions. A short explanation: Besides the libraries written in ruby ( there are tons of them ), libraries with bindings to lower-level code written in c exist ( some XML Parsers, RMagick, MySQL.. ). They rely on their low-level counterparts to be installed, and they also need a c compiler to build their interfacing part.
因此,如果您没有像 gcc 这样的 c 编译器,并且没有安装整个构建环境(包括 make、autoconf 和整个 bla),您将无法构建这些原生扩展.
So if you do not have a c-compiler like gcc and the whole build environment ( including make, autoconf and the whole bla ) installed, you won't be able to build those native extensions.
希望对您有所帮助:-)
Hope that was of some help :-)
这篇关于在 Windows 上安装 Ruby-Debug 的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!