I just setup my mac for development and used this exact gemfile previously and it worked fine. I am not sure what I am doing wrong.
Victorias-MacBook-Pro:sa
The above-mentioned answers did not work for me, but commenting out capistrano gems in the Gemfile did.
I just had a similar issue while using rvm. Here is what worked for me:
Check to see what version of rails you are using with rvm (in terminal): ruby -v (in my case opened a new terminal with version set to ruby 1.8.7, yours may not be)
Switch to the correct ruby version (In my case it should be ruby 2.1.1, yours may not be): rvm 2.1.1 (this sets the ruby version to 2.1.1, replace with your project's ruby x.x.x)
Try re-running bundle check: bundle check
You should get: The Gemfile's dependencies are satisfied
I got the same error after updating up my Ruby/Rails environment.
gem update bundler
fixed it.
You're running Ruby 1.8 and the syntax attribute:
requires ruby 1.9. You will need to change
gem 'cucumber-rails', '1.2.1', require: false
to
gem 'cucumber-rails', '1.2.1', :require => false
Or install Ruby 1.9 (maybe using RVM or rbenv) and run bundle install
again. This would be a much bettter option if it's a new project.
If you are using RVM, check which gemset you are using: rvm current
.
If it says, for example, system
, you may need to select the correct gemset (I did). Use rvm list gemsets
if you can't remember what it's called, then select the correct gemset using rvm use [correct gemset]
.