Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Bundler could not find compatible versions for gem "bundler" #2081

Closed
elf-pavlik opened this issue Aug 29, 2012 · 9 comments
Closed

Bundler could not find compatible versions for gem "bundler" #2081

elf-pavlik opened this issue Aug 29, 2012 · 9 comments

Comments

@elf-pavlik
Copy link

I find this issue very confusing :(

while setting up: https://github.com/sharetribe/sharetribe

$ bundle install

works with fresh repo, but if in Gemfile i just uncomment

gem 'unicorn'

then running

$ bundle install

throws

Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    rails (= 3.0.0) ruby depends on
      bundler (~> 1.0.0) ruby

  Current Bundler version:
    bundler (1.1.5)

This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
@indirect
Copy link
Member

Try running bundle update rails to get your rails version higher than 3.0.0. The other option is to install an older version of Bundler.

On Aug 29, 2012, at 3:33 AM, elf Pavlik notifications@github.com wrote:

I find this issue very confusing :(

while setting up: https://github.com/sharetribe/sharetribe

$ bundle install
works with fresh repo, but if in Gemfile i just uncomment

gem 'unicorn'
then running

$ bundle install
throws

Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) ruby depends on
bundler (~> 1.0.0) ruby

Current Bundler version:
bundler (1.1.5)

This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running gem install bundler?

Reply to this email directly or view it on GitHub.

@elf-pavlik
Copy link
Author

updating rails did the trick, @indirect what do you think about possibly including such suggestions in error message?

@indirect
Copy link
Member

Well, like the error message said... Rails 3.0.0 requires Bundler 1.0.x. You're running with Bundler 1.1.5, so it doesn't work. Maybe there's a way to improve that error message? Sadly, the suggestion that you update rails doesn't scale. That solution only worked because I happen to know that Rails 3.0.x fixed their Bundler dependency to allow Bundler 1.1.x. Sorry. :\

@champsatin
Copy link

Hi,

Can you please help me with this error :
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.1) ruby depends on
bundler (~> 1.0.0) ruby

Current Bundler version:
bundler (1.9.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running gem install bundler?
Could not find gem 'bundler (~> 1.0.0) ruby', which is required by gem 'rails (= 3.0.1) ruby', in any of the sources.

@indirect
Copy link
Member

indirect commented Apr 1, 2015

Update to a newer version of Rails.

On Wed, Apr 1, 2015 at 11:25 AM, champsatin notifications@github.com
wrote:

Hi,
Can you please help me with this error :
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.1) ruby depends on
bundler (~> 1.0.0) ruby
Current Bundler version:
bundler (1.9.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running gem install bundler?

Could not find gem 'bundler (~> 1.0.0) ruby', which is required by gem 'rails (= 3.0.1) ruby', in any of the sources.

Reply to this email directly or view it on GitHub:
#2081 (comment)

@champsatin
Copy link

Thanks for the response. I tried "gem update rails" & got the following error :-
Updating installed gems
ERROR: While executing gem ... (Net::HTTPFatalError)
503 "Service Unavailable"

Also on running "rails -v", I get the following o/p -

/home/champsatin/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:2112:in raise_if_conflicts': Unable to activate rails-3.0.1, because bundler-1.9.2 conflicts with bundler (~> 1.0.0) (Gem::ConflictError) from /home/aspire/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1280:inactivate'
from /home/aspire/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:67:in block in gem' from <internal:prelude>:10:insynchronize'
from /home/aspire/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:66:in gem' from /home/aspire/.rvm/gems/ruby-1.9.3-p551@rails3tutorial/bin/rails:22:in

'
from /home/aspire/.rvm/gems/ruby-1.9.3-p551@rails3tutorial/bin/ruby_executable_hooks:15:in eval' from /home/aspire/.rvm/gems/ruby-1.9.3-p551@rails3tutorial/bin/ruby_executable_hooks:15:in'

Can you please help.

@segiddins
Copy link
Member

@champsatin you need to update the rails dependency in your Gemfile to be something newer than 3.0.1

@UbuntuEvangelist
Copy link

bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all
non-root users on this machine.
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.3.2 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
Ignoring nio4r-2.1.0 because its extensions are not built. Try: gem pristine nio4r --version 2.1.0
Ignoring nokogiri-1.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.8.1
Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5
Fetching https://github.com/rails-api/active_model_serializers.git
Fetching https://github.com/instructure/nokogiri-xmlsec-me-harder.git
Fetching https://github.com/kreynolds/cassandra-cql.git
Fetching https://github.com/twitter/thrift_client.git
Fetching https://github.com/ccutrer/redis-store.git
Fetching https://github.com/instructure/test-queue.git
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
bundler (<= 1.16.0, >= 1.13.3)

Current Bundler version:
bundler (1.16.1)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running gem install bundler?

Could not find gem 'bundler (<= 1.16.0, >= 1.13.3)' in any of the relevant sources:
the local ruby installation
screenshot from 2017-12-27 13 54 15

@ahujasushant
Copy link

@thonsun can you show your Gemfile?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants