有什么建议吗?
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> 发布于 2009-12-29 11:53:20
看起来,您缺少一个合理的构建环境来构建本机扩展。一个简短的解释:除了用ruby编写的库(有很多)之外,还有绑定到用c编写的低级代码的库(一些XML解析器、RMagick、MySQL..)。它们依赖于要安装的低级副本,并且它们还需要一个c编译器来构建它们的接口部分。
因此,如果你没有像gcc这样的C编译器,并且没有安装整个编译环境(包括make,autoconf和整个bla ),你将无法构建这些本机扩展。
希望这能有所帮助:-)
发布于 2009-12-29 19:26:41
回到ruby-debug的早期版本,它带有一个预编译的windows二进制文件,这样它就不需要构建本地扩展了。
或遵循以下说明或其某些变体:
http://amitava1.blogspot.com/2008/02/gem-install-ruby-debug-fails-in-windows.html
https://stackoverflow.com/questions/1972549
复制相似问题