简体   繁体   English

无法安装ZenTest 4.8.4

[英]Can't install ZenTest 4.8.4

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? 怎么了?

I've just spoken with Ryan Davis, the author of ZenTest. 我刚刚和ZenTest的作者Ryan Davis谈过。 He tells me that this is due to a bug in RubyGems and they're preparing a release that fixes it. 他告诉我,这是由于RubyGems中的一个错误,他们正在准备一个修复它的版本。

In the meantime, downgrade to 4.8.3. 与此同时,降级至4.8.3。

将rubygems更新到1.8.25似乎解决了这个问题( https://github.com/seattlerb/zentest/issues/28

to cleanup the gem, move the gemspec file to some other location. 要清理gem,请将gemspec文件移动到其他位置。

eg: in ubuntu to cleanup the gem, do 例如:在ubuntu中清理gem,做

sudo mv /var/lib/gems/1.8/specifications/ZenTest-4.8.4.gemspec /var/tmp/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM