I am using two gems ie squeel and activeadmin and running bundler gives me issue ie:
Bundler could not find compatible versions for gem "polyamorous":
In Gemfile:
activeadmin (>= 0) ruby depends on
polyamorous (~> 0.5.0) ruby
squeel (>= 0) ruby depends on
polyamorous (0.6.4)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
activeadmin (>= 0) ruby depends on
activerecord (~> 3.0.0.rc2) ruby
delayed_job_active_record (>= 0) ruby depends on
activerecord (3.2.13)
How can I handle this? Any idea?
That's being caused by Metasearch:
Metasearch is no longer being maintained, so we're working on moving to Ransack, its successor. We aren't quite finished, so there hasn't yet been an official release. If you want to go ahead and give it a try:
gem 'activeadmin', github: 'gregbell/active_admin'
Related
I am trying to install ruby gems and having the following issue. Please suggest. I am a novice in Ruby n Rails. Right now I am using Ruby 2.0.0.
Bundler could not find compatible versions for gem "nokogiri":
In Gemfile:
nokogiri (~> 1.5)
fog (~> 1.23.0) was resolved to 1.23.0, which depends on
nokogiri (~> 1.5, >= 1.5.11)
Bundler could not find compatible versions for gem "ruby":
In Gemfile:
ruby (~> 2.0.0.0)
nokogiri (~> 1.5) was resolved to 1.8.5, which depends on
ruby (>= 2.1.0)
Bundler could not find compatible versions for gem "sprockets":
In Gemfile:
activeadmin-wysihtml5 was resolved to 1.0.0, which depends on
activeadmin-dragonfly was resolved to 0.0.2, which depends on
activeadmin was resolved to 2.0.0.alpha, which depends on
sprockets (>= 3.0, < 4.1)
sass-rails (~> 4.0.3) was resolved to 4.0.3, which depends on
sprockets (~> 2.8, <= 2.11.0)
As the most easy solution I'd propose to remove versions from Gemfile i.e. instead of writing
gem 'nokogiri', '~> 1.5'
use just
gem 'nokogiri'
The same for all conflicting gems. And then try to rerun you bundle install. This would make Bundler more broad possibilities to find suitable versions. After all dependencies are installed correctly, just fix gem versions according to Gemfile.lock
I'm having this error while running bundle install:
Your Gemfile requires gems that depend on each other, creating an infinite loop. Please remove gem 'casein' and try again.
The error started when I added the gem countries to Gemfile.
I think it's a weird bug, because countries and casein have very different dependencies:
Puelos-Macbook:ChataBackend paulo$ gem dependency countries
Gem countries-0.11.4
currencies (~> 0.4.2)
i18n_data (~> 0.7.0)
rspec (>= 3, development)
yard (>= 0, development)
Puelos-Macbook:ChataBackend paulo$ gem dependency casein
Gem casein-5.0.0.0
authlogic (= 3.4.2)
casein (>= 0)
jquery-rails (>= 0)
scrypt (= 1.2.1)
will_paginate (= 3.0.5)
edit:
Just to be sure, I removed all other gems from my Gemfile:
source 'https://rubygems.org'
gem 'countries'
gem 'casein', '5.0.0'
But the error persists
Oh, sorry, I didn’t get this at the first glance.
casein gem references itself:
Puelos-Macbook:ChataBackend paulo$ gem dependency casein
Gem casein-5.0.0.0
authlogic (= 3.4.2)
!! NB⇒ casein (>= 0)
jquery-rails (>= 0)
scrypt (= 1.2.1)
will_paginate (= 3.0.5)
It was allowed for bundle prior to 1.9, but disallowed now. You have two options:
downgrade bundler to 1.8 and re-run bundle install.
clone the casein gem, patch casein.gemspec by removing self-reference and submit a pull-request. https://github.com/spoiledmilk/casein3/blob/master/casein.gemspec#L103
NB Actually this was already done by community, e.g. https://github.com/russellquinn/casein
So, you might simply require that version explicitly via gem 'casein', git: 'github.com:russellquinn/casein'.
Hope it helps.
I am getting the following error when I run 'bundle install':
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
google-drive (>= 0) ruby depends on
middleman-core (>= 3.2.2) ruby depends on
activesupport (~> 3.2.6) ruby
rails (= 4.2.0) ruby depends on
activesupport (4.2.0)
I don't specify a version for the google-drive gemfile, but I do specify gem 'rails', '4.2.0'.
If I fail to specify a rails version, I get a really old version.
Try to update google-drive. Run bundle update google-drive.
Well - it looks like I was using the wrong gem. It's google_drive not google-drive.
I'm attempting to add an on boarding tutorial to my site. I've installed the joyride-rails gem and am getting this error when running bundle install.
Bundler could not find compatible versions for gem "rails":
In Gemfile:
joyride-rails (~> 0.0.14) ruby depends on
rails (~> 3.1) ruby
rails (4.1.6)
I've done some research and found this answer Dependency error while installing the gem "joyride-rails"
And this answer Simple Javascript Joyride plugin in rails
The problem is I think that the joyride gem just isn't compatible with rails 4 and when I down grade to 3.1 a bunch of my other gems are in conflict. I delte the gemfile.lock and run bundle install and get this error.
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (~> 4.0.0) ruby depends on
railties (< 5.0, >= 4.0.0.beta) ruby
rails (= 3.1) ruby depends on
railties (3.1.0)
Any suggestions as to how I can implement this gem? Or do you know of another Gem that will accomplish the same goal?
Thanks!
This question already has answers here:
Updating from Rails 4.0 to 4.1 gives sass-rails railties version conflicts
(4 answers)
Closed 8 years ago.
I'm trying to upgrade my application from rails 3.2.16 to rails 4.1.0, I get into troubles right at the beginning when I try to call the bundler:
Bundler could not find compatible versions for gem "sprockets":
In Gemfile:
sass-rails (>= 0) ruby depends on
sprockets (~> 2.0.0) ruby
rails (= 4.1.0) ruby depends on
sprockets-rails (~> 2.0) ruby depends on
sprockets (2.12.1)
Bundler could not find compatible versions for gem "sprockets-rails":
In Gemfile:
sass-rails (>= 0) ruby depends on
sprockets-rails (~> 2.0.0) ruby
rails (= 4.1.0) ruby depends on
sprockets-rails (2.1.3)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
sass-rails (>= 0) ruby depends on
railties (~> 3.1.0) ruby
rails (= 4.1.0) ruby depends on
railties (4.1.0)
and (part) of my Gemfile:
gem 'rails', '4.1.0'
gem 'mysql2'
gem "rake"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem 'sass-rails'
Some older versions of Bundler have a bug that can cause this failure to resolve. Updating to the latest version might help.
Run this to update:
gem install bundler