RubyGems 安装 Windows Server 2008 R2

发布于 2024-11-03 11:47:07 字数 1246 浏览 0 评论 0原文

我正在尝试安装 Ruby,但在按照本指南安装 RubyGems 时遇到了问题: http://rubygems.org/ 当我运行 setup.rb 时,

我得到以下输出?

C:\ruby\rubygems-1.7.2\rubygems-1.7.2>ruby setup.rb
./lib/rubygems/custom_require.rb:53: warning: parenthesize argument(s) for futur
e version
./lib/rubygems/dependency.rb:203: warning: parenthesize argument(s) for future v
ersion
./lib/rubygems/dependency.rb:204: warning: parenthesize argument(s) for future v
ersion
./lib/rubygems/custom_require.rb:56:in `require': undefined method `end_with?' f
or "no such file to load -- psych":String (NoMethodError)
    from ./lib/rubygems.rb:720:in `load_yaml'
    from ./lib/rubygems/config_file.rb:231:in `load_file'
    from ./lib/rubygems/config_file.rb:178:in `initialize'
    from ./lib/rubygems/gem_runner.rb:77:in `new'
    from ./lib/rubygems/gem_runner.rb:77:in `do_configuration'
    from ./lib/rubygems/gem_runner.rb:50:in `run'
    from setup.rb:35

注意我已按照本指南使用 1.86 安装程序安装了 Ruby: http://gojko.net/2010/01/01/bdd-in-net-with-cucumber-cuke4nuke-and-teamcity/

尖叫新手!

干杯

I am trying to install Ruby and I'm running into issues installing RubyGems following this guide: http://rubygems.org/pages/download

When I run setup.rb I get the below output?

C:\ruby\rubygems-1.7.2\rubygems-1.7.2>ruby setup.rb
./lib/rubygems/custom_require.rb:53: warning: parenthesize argument(s) for futur
e version
./lib/rubygems/dependency.rb:203: warning: parenthesize argument(s) for future v
ersion
./lib/rubygems/dependency.rb:204: warning: parenthesize argument(s) for future v
ersion
./lib/rubygems/custom_require.rb:56:in `require': undefined method `end_with?' f
or "no such file to load -- psych":String (NoMethodError)
    from ./lib/rubygems.rb:720:in `load_yaml'
    from ./lib/rubygems/config_file.rb:231:in `load_file'
    from ./lib/rubygems/config_file.rb:178:in `initialize'
    from ./lib/rubygems/gem_runner.rb:77:in `new'
    from ./lib/rubygems/gem_runner.rb:77:in `do_configuration'
    from ./lib/rubygems/gem_runner.rb:50:in `run'
    from setup.rb:35

Note I have installed Ruby using the 1.86 installer following this guide: http://gojko.net/2010/01/01/bdd-in-net-with-cucumber-cuke4nuke-and-teamcity/

Scream novice!

Cheers

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

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

发布评论

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

评论(1

情绪操控生活 2024-11-10 11:47:07

我相信 Ruby 1.8.6 已经过时了。除非出于兼容性原因需要它,否则您应该考虑至少使用 ruby​​ 1.9.2(现在推荐)或 1.8.7。或者,您可以尝试使用较旧的 ruby​​gems,但随后您可能会遇到问题。

Ruby 1.8.6 is terribly outdated I belive. Unless you need it for compatibility reasons you should consider using ruby 1.9.2 (which is now recommended) or 1.8.7 at the very least. Alternatively you may try using older rubygems but then you may run into problems further down the way.

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