Ruby gem already activated
How can I de-activate the newer version of cucumber, or get this to work with the earlier version?
开发者_Go百科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'
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.
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
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
精彩评论