Diff between bundle exec cucumber and cucumber when we fire ?

179 views
Skip to first unread message

Fahim Patel

unread,
Nov 5, 2012, 12:49:55 AM11/5/12
to cu...@googlegroups.com
Hi all,

What is Diff between bundle exec cucumber and cucumber when we fire ?

I am getting one error which is shown below when i fire cucumber command.

You have already activated activesupport 3.2.8, but your Gemfile requires activesupport 3.2.4. Using bundle exec may solve this. (Gem::LoadError)


But when i fire bundle exec cucumber , my cucumber run successive.

As per in my project structure one of the project have 3.8 rails version and i am working on another project which have 3.4 rails version and in this project i am writing cucumber.
  
When i fire cucumber command it not work but bundle exec cucumber command work .

error is same
You have already activated activesupport 3.2.8, but your Gemfile requires activesupport 3.2.4. Using bundle exec may solve this. (Gem::LoadError)


I dont know why ?
Hope you will understood

Thanks

Regards
Fahim Babar Patel



Scott Smith

unread,
Nov 5, 2012, 2:35:02 AM11/5/12
to cu...@googlegroups.com
Hi Fahim,

This is a commonly-seen anomaly, but it's not a bug.  The Cucumber authors specified the gems and gem versions in a Bundler file called Gemfile.  When you run "bundle install", Bundler generates a "Gemfile.lock" file with what versions it's using.  Prefacing 'cucumber' with 'bundle exec' forces Ruby to only look for those specified gems and versions.  Not prefacing the 'Cucumber' command results in Ruby considering all versions of the gems, including versions that may not be compatible with Cucumber.

The Bundler author talks about this in a post here:


The error you are reporting is saying this is the case.  Version 3.2.8 of activesupport is newer than the one specified in Cucumber's Gemfile (3.2.4) and is not tested in the version of Cucumber you are using.

Try any of the following:

1.  Update your Cucumber installation to the latest version.
2.  Manually modify your Cucumber's Gemfile to use version 3.2.8 of ActiveRecord and rerun 'bundle install'; see if it still works.  You may find that you may have to update other Rails gems similarly.

HTH,

Scott




--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
 
 



--
Scott Smith

http://twitter.com/_ofd (OldFartDeveloper)

Fahim Patel

unread,
Nov 5, 2012, 2:38:27 AM11/5/12
to cu...@googlegroups.com
Hi Scott , 

Thanks for reply.


Regards
Fahim Babar PAtel
Reply all
Reply to author
Forward
0 new messages