error in your Gemfile, and Bundler cannot continue

前端 未结 5 694
无人共我
无人共我 2020-12-16 12:34

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         


        
相关标签:
5条回答
  • 2020-12-16 12:57

    The above-mentioned answers did not work for me, but commenting out capistrano gems in the Gemfile did.

    0 讨论(0)
  • 2020-12-16 13:02

    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

    0 讨论(0)
  • 2020-12-16 13:03

    I got the same error after updating up my Ruby/Rails environment.

    gem update bundler fixed it.

    0 讨论(0)
  • 2020-12-16 13:14

    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.

    0 讨论(0)
  • 2020-12-16 13:23

    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].

    0 讨论(0)
提交回复
热议问题