本文介绍了Windows7上的Ruby-找不到gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在一台新的Windows 7计算机上设置一个红宝石Apache Buildr.我已经通过
I'm setting up a ruby Apache Buildr on a fresh Windows 7 machine.I've installed Ruby, the DevKit and installed buildr via
gem install buildr
一切都完美无缺.直到我尝试执行buildr之前,我都会收到一个错误.
wich all ran perfect.Until I tried to execute buildr, then I get an error.
buildr compile
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find buildr (>= 0) amongst [atoulme-Antwrap-0.7.1, builder-2.1.2, buildr-1.4.5-x86-mswin32, buildr-as3-0.2.12, diff-lcs-1.1.2,highline-1.5.1, hoe-2.3.3, json_pure-1.4.3, minitar-0.5.3, minitest-1.6.0, net-sftp-2.0.4, net-ssh-2.0.23, rake-0.8.7, rdoc-2.5.8, rjb-1.3.2-x86-mswin32-60, rspec-2.1.0, rspec-core-2.1.0,rspec-expectations-2.1.0, rspec-mocks-2.1.0, rubyforge-2.0.3, rubygems-update-1.8.4, rubyzip-0.9.4, xml-simple-1.0.12] (Gem::LoadError)
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:1182:in `gem'
from C:/Ruby192/bin/buildr:18:in `<main>'
当我列出所有宝石时,
gem list buildr
一切似乎都匹配,并且此错误根本没有道理.
Everything seems to match up, and this error makes no sense at all.
有什么想法吗?帮助将是巨大的,我现在迫在眉睫. :)
Any ideas?Help would be great, I'm getting desperate now. :)
推荐答案
出现相同的问题.我安装了Windows 7 x64,因此再次使用gem install buildr --platform mswin64
安装了它,并且可以正常工作.
Had the same problem. I have Windows 7 x64 so installed again with gem install buildr --platform mswin64
and it worked.
这篇关于Windows7上的Ruby-找不到gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!