RubyGems 安装 Windows Server 2008 R2
我正在尝试安装 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信 Ruby 1.8.6 已经过时了。除非出于兼容性原因需要它,否则您应该考虑至少使用 ruby 1.9.2(现在推荐)或 1.8.7。或者,您可以尝试使用较旧的 rubygems,但随后您可能会遇到问题。
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.