问题构建总结 gem

发布于 2024-10-22 01:42:24 字数 1144 浏览 8 评论 0原文

我正在尝试在 Ruby 中使用 Summarize gem,但是当我执行 gem install summarise 时,我得到:

Building native extensions.  This could take a while...
ERROR:  Error installing summarize:
    ERROR: Failed to build gem native extension.

C:/dev/Ruby/bin/ruby.exe extconf.rb
creating Makefile

nmake

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cl -nologo -I. -IC:/dev/Ruby/lib/ruby/1.8/i386-mswin32 -IC:/dev/Ruby/lib
/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6  -c -Tcarticle.c
cl : Command line warning D4029 : optimization is not available in the standard
edition compiler
cl : Command line warning D4002 : ignoring unknown option '-Og-'
article.c
article.c(21) : fatal error C1083: Cannot open include file: 'stdio.h': No such
file or directory
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x2'
Stop.

Gem files will remain installed in C:/dev/Ruby/lib/ruby/gems/1.8/gems/summarize-
1.0.3 for inspection.
Results logged to C:/dev/Ruby/lib/ruby/gems/1.8/gems/summarize-1.0.3/ext/summari
ze/gem_make.out

有什么想法吗?

I'm trying to use the Summarize gem in Ruby, but when I do gem install summarize, i get:

Building native extensions.  This could take a while...
ERROR:  Error installing summarize:
    ERROR: Failed to build gem native extension.

C:/dev/Ruby/bin/ruby.exe extconf.rb
creating Makefile

nmake

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cl -nologo -I. -IC:/dev/Ruby/lib/ruby/1.8/i386-mswin32 -IC:/dev/Ruby/lib
/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6  -c -Tcarticle.c
cl : Command line warning D4029 : optimization is not available in the standard
edition compiler
cl : Command line warning D4002 : ignoring unknown option '-Og-'
article.c
article.c(21) : fatal error C1083: Cannot open include file: 'stdio.h': No such
file or directory
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x2'
Stop.

Gem files will remain installed in C:/dev/Ruby/lib/ruby/gems/1.8/gems/summarize-
1.0.3 for inspection.
Results logged to C:/dev/Ruby/lib/ruby/gems/1.8/gems/summarize-1.0.3/ext/summari
ze/gem_make.out

any ideas??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苯莒 2024-10-29 01:42:24

您正在使用 Microsoft C++ 编译器。安装 MinGW:它是 POSIX 工具集的一个端口,您可以在 *nixes 中找到它(包括 GCC、GNU 编译器)。

http://www.mingw.org/

如果您使用 RubyInstaller 来安装 Ruby,这里有一个封装精美的版本建议您使用 MinGW 的:

http://rubyinstaller.org/add-ons/devkit/< /a>

You're using the Microsoft C++ compiler. Install MinGW: it is a port of the POSIX toolset you'll find in *nixes (including GCC, the GNU compiler).

http://www.mingw.org/

If you used RubyInstaller to install Ruby, there's a nicely-packaged version of MinGW you're recommended to use:

http://rubyinstaller.org/add-ons/devkit/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文