红宝石宝石已激活
如何停用较新版本的 Cucumber,或使其与早期版本一起使用?
user$ rake features
(in /Users/user/Project)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I "/Library/Ruby/Gems/1.8/gems/cucumber-0.6.1/lib:lib" "/Library/Ruby/Gems/1.8/gems/cucumber- 0.6.1/bin/cucumber" --format pretty
can't activate cucumber (= 0.4.4, runtime) for [], already activated cucumber-0.6.1 for [] (Gem::LoadError)
/Library/Ruby/Site/1.8/rubygems.rb:280:in `activate'
How can I de-activate the newer version of cucumber, or get this to work with the earlier version?
user$ rake features
(in /Users/user/Project)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I "/Library/Ruby/Gems/1.8/gems/cucumber-0.6.1/lib:lib" "/Library/Ruby/Gems/1.8/gems/cucumber- 0.6.1/bin/cucumber" --format pretty
can't activate cucumber (= 0.4.4, runtime) for [], already activated cucumber-0.6.1 for [] (Gem::LoadError)
/Library/Ruby/Site/1.8/rubygems.rb:280:in `activate'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我会尝试完全删除 0.6.1,看看它是否可以在仅安装 0.4.4 的情况下运行。
如果没有,您需要找出需要 0.4.4 的内容并将其更改为 >= 并查看是否有效。
I'd try removing 0.6.1 entirely and seeing if it will run with just 0.4.4 installed.
If not, you need to track down what is requiring 0.4.4 and change it to >= and see if that works.
您可以使用一些简单的调整,以便多个版本的 Cucumber 能够很好地配合:
http://gem-session.com/2010/04/how-to-use-multiple-versions-of-cucumber-in-parallel
There are some simple tweaks you can use so multiple versions of Cucumber play nice with each other:
http://gem-session.com/2010/04/how-to-use-multiple-versions-of-cucumber-in-parallel
一个不错的长期解决方案是使用 rvm 和 gemsets。
一旦你安装了 rvm,这篇文章确实非常方便。
http://www.stjhimy.com/posts/4
A nice longer term solution is to use rvm, and gemsets.
Once you install rvm this post is very handy indeed.
http://www.stjhimy.com/posts/4