When I try to install ZenTest:
当我尝试安装ZenTest时:
gem install ZenTest
I get the following error:
我收到以下错误:
Invalid gemspec in [C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
[C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/specifications/ZenTest-4.8.4.gemspec]中的gemspec无效:格式错误的要求[“<2.1,> = 1.8”]
I tried cleaning up the gems and removing the ZenTest to no avail.
我试图清理宝石并删除ZenTest无济于事。
What's wrong?
怎么了?
3 个解决方案
#1
15
I've just spoken with Ryan Davis, the author of ZenTest. He tells me that this is due to a bug in RubyGems and they're preparing a release that fixes it.
我刚刚和ZenTest的作者Ryan Davis谈过。他告诉我,这是由于RubyGems中的一个错误,他们正在准备一个修复它的版本。
In the meantime, downgrade to 4.8.3.
与此同时,降级至4.8.3。
#2
3
Updating rubygems to 1.8.25 seems to fix the problem (https://github.com/seattlerb/zentest/issues/28)
将rubygems更新到1.8.25似乎解决了这个问题(https://github.com/seattlerb/zentest/issues/28)
#3
1
to cleanup the gem, move the gemspec file to some other location.
要清理gem,将gemspec文件移动到其他位置。
e.g: in ubuntu to cleanup the gem, do
例如:在ubuntu中清理gem,做
sudo mv /var/lib/gems/1.8/specifications/ZenTest-4.8.4.gemspec /var/tmp/
#1
15
I've just spoken with Ryan Davis, the author of ZenTest. He tells me that this is due to a bug in RubyGems and they're preparing a release that fixes it.
我刚刚和ZenTest的作者Ryan Davis谈过。他告诉我,这是由于RubyGems中的一个错误,他们正在准备一个修复它的版本。
In the meantime, downgrade to 4.8.3.
与此同时,降级至4.8.3。
#2
3
Updating rubygems to 1.8.25 seems to fix the problem (https://github.com/seattlerb/zentest/issues/28)
将rubygems更新到1.8.25似乎解决了这个问题(https://github.com/seattlerb/zentest/issues/28)
#3
1
to cleanup the gem, move the gemspec file to some other location.
要清理gem,将gemspec文件移动到其他位置。
e.g: in ubuntu to cleanup the gem, do
例如:在ubuntu中清理gem,做
sudo mv /var/lib/gems/1.8/specifications/ZenTest-4.8.4.gemspec /var/tmp/