I'm trying to run an old project but I have problem. I'm using:
Ruby - 1.9.3
Rails - 3.0.20
I'm getting the following error while installing the gems. How do I install these gems?
Resolving dependencies...................................................................................................................
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
active_form was resolved to 1.0.4, which depends on
activesupport (>= 3.0.0)
active_form was resolved to 1.0.4, which depends on
activesupport (>= 3.0.0)
paper_trail (~> 3.0.1) was resolved to 3.0.9, which depends on
activesupport (< 5.0, >= 3.0)
paperclip was resolved to 4.3.1, which depends on
activesupport (>= 3.2.0)
rails (= 3.0.20) was resolved to 3.0.20, which depends on
activesupport (= 3.0.20)
rails (= 3.0.20) was resolved to 3.0.20, which depends on
activesupport (= 3.0.20)
rails (= 3.0.20) was resolved to 3.0.20, which depends on
activesupport (= 3.0.20)
rails (= 3.0.20) was resolved to 3.0.20, which depends on
activesupport (= 3.0.20)
rails (= 3.0.20) was resolved to 3.0.20, which depends on
activesupport (= 3.0.20)
rspec-rails (~> 2.14.0) was resolved to 2.14.2, which depends on
activesupport (>= 3.0)
If you carefully read the explanation, it's quite clear where the problem is.
paperclip was resolved to 4.3.1, which depends on
activesupport (>= 3.2.0)
This specific gem requires an activesupport version which is at least 3.2, but your project has Rails (and consequently activesupport) freezed at 3.0.20.
You need to use a paperclip version which is compatible with older versions of Rails. Edit your Gemfile and specify an older paperclip version.
You can check the paperclip dependencies on RubyGems and select the proper version.
You should decrease your paperclip gem version.
Related
I have multiple gems failing on my app. My bundler is not able to find compatible versions for all. I also do not have a 'Gemfile.lock' and it does not get created on bundle install. As follows:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
draper was resolved to 2.1.0, which depends on
actionpack (>= 3.0)
jquery-datatables-rails (~> 3.3.0) was resolved to 3.3.0, which depends on
actionpack (>= 3.1)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
actionpack (= 4.1.6)
rails-api was resolved to 0.4.1, which depends on
actionpack (>= 3.2.11)
ransack was resolved to 1.8.10, which depends on
actionpack (< 5.2, >= 3.0)
redis-rails was resolved to 5.0.2, which depends on
redis-actionpack (< 6, >= 5.0) was resolved to 5.1.0, which depends on
actionpack (< 7, >= 4.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
acts_as_api (= 1.0.1) was resolved to 1.0.1, which depends on
activemodel (>= 3.0.0)
carrierwave (>= 1.0.0.beta, < 2.0) was resolved to 1.3.2, which depends on
activemodel (>= 4.0.0)
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
activemodel (>= 3.2.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activemodel (= 4.1.6)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
activerecord-postgres-hstore was resolved to 0.7.8, which depends on
activerecord (>= 3.1)
audited (~> 4.7) was resolved to 4.8.0, which depends on
activerecord (< 5.3, >= 4.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activerecord (= 4.1.6)
I am trying it again with the following specifications and getting the same result.
bundler: 1.16.6
rails: 4.1.6
ruby: 2.3.8
ubuntu: 18.04
I can see my gems when I do gem list but it still says bundler is not able to find anything for rails 4.1.6.
Add source in your Gemfile like below:
Gemfile
source 'https://rubygems.org'
delete everything form your Gemfile.lock and run bundle install
please help me here, I was upgrading ruby and rails and also dependent gems need upgrades.
Earlier the ruby version was 2.3.0 and rails was 4.2.x, now upgrading to 2.6.0 and rails to 6.0.4
If you see below error, actionpack is resolved to 6.0.4 and public_activity also needs actionpack >=3.0.0 which means 6.0.4 should be acceptable and obviously rails using version = 6.0.4, So why its an error. can some expert throw some knowledge on it.
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
actionpack (~> 6.0, >= 6.0.4)
public_activity (~> 1.6, >= 1.6.4) was resolved to 1.6.4, which depends on
actionpack (>= 3.0.0)
rails (= 6.0.4) was resolved to 6.0.4, which depends on
actionpack (= 6.0.4)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
activemodel (~> 6.0, >= 6.0.4)
active_model_otp was resolved to 1.2.0, which depends on
activemodel
paperclip (~> 6.1) was resolved to 6.1.0, which depends on
activemodel (>= 4.2.0)
rails (= 6.0.4) was resolved to 6.0.4, which depends on
activemodel (= 6.0.4)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
activesupport (~> 6.0, >= 6.0.4)
delayed_job (~> 4.1, >= 4.1.9) was resolved to 4.1.9, which depends on
activesupport (>= 3.0, < 6.2)
factory_girl_rails (= 4.2.1) was resolved to 4.2.1, which depends on
factory_girl (~> 4.2.0) was resolved to 4.2.0, which depends on
activesupport (>= 3.0.0)
jbuilder (~> 2.10) was resolved to 2.11.2, which depends on
activesupport (>= 5.0.0)
paperclip (~> 6.1) was resolved to 6.1.0, which depends on
activesupport (>= 4.2.0)
rails (= 6.0.4) was resolved to 6.0.4, which depends on
activesupport (= 6.0.4)
Bundler could not find compatible versions for gem "capybara":
In Gemfile:
capybara (= 2.1.0)
cucumber-rails (= 1.4.0) was resolved to 1.4.0, which depends on
capybara (>= 1.1.2)
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (= 6.0.4) was resolved to 6.0.4, which depends on
actionpack (= 6.0.4) was resolved to 6.0.4, which depends on
rack (~> 2.0, >= 2.0.8)
sprockets (= 2.11.0) was resolved to 2.11.0, which depends on
rack (~> 1.0)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 6.0.4)
cucumber-rails (= 1.4.0) was resolved to 1.4.0, which depends on
rails (>= 3.0.0)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (~> 5.0) was resolved to 5.0.0, which depends on
railties (>= 5.2.0)
devise was resolved to 4.8.0, which depends on
railties (>= 4.1)
doorkeeper (= 4.2.5) was resolved to 4.2.5, which depends on
railties (>= 4.2)
factory_girl_rails (= 4.2.1) was resolved to 4.2.1, which depends on
railties (>= 3.0.0)
rails (= 6.0.4) was resolved to 6.0.4, which depends on
railties (= 6.0.4)
Bundler could not find compatible versions for gem "rotp":
In Gemfile:
rotp (~> 3.3.0)
active_model_otp was resolved to 1.2.0, which depends on
rotp
Bundler could not find compatible versions for gem "will_paginate":
In Gemfile:
will_paginate (= 3.0.5)
bootstrap-will_paginate (= 0.0.10) was resolved to 0.0.10, which depends on
will_paginate
I'm answering my own question, Since It got resolved after several iterations.
I removed Gemfile.lock and in Gemfile I start entering Gems one by one and then run bundle install each time, then eventually this problem did not occur.
I'm working on an old Rails 4 project and I'm having problem when running bundle install and bundle update command.
Here are the logs:
Resolving dependencies..................................................
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
active_link_to was resolved to 1.0.5, which depends on
actionpack
jquery-datatables-rails (~> 3.4) was resolved to 3.4.0, which depends on
actionpack (>= 3.1)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
actionpack (= 4.2.8)
rspec-rails (~> 3.5, >= 3.5.2) was resolved to 3.9.1, which depends on
actionpack (>= 3.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
carrierwave (~> 0.11.2) was resolved to 0.11.2, which depends on
activemodel (>= 3.2.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
activemodel (= 4.2.8)
validate_url was resolved to 1.0.8, which depends on
activemodel (>= 3.0.0)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
active_median (~> 0.1.3) was resolved to 0.1.4, which depends on
activerecord
activerecord-nulldb-adapter was resolved to 0.4.0, which depends on
activerecord (>= 2.0.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
activerecord (= 4.2.8)
rails-erd was resolved to 1.6.0, which depends on
activerecord (>= 4.2)
seed_dump was resolved to 3.3.1, which depends on
activerecord (>= 4)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
activesupport-json_encoder (~> 1.1) was resolved to 1.1.0, which depends on
activesupport (>= 4.1.0, < 5.0)
carrierwave (~> 0.11.2) was resolved to 0.11.2, which depends on
activesupport (>= 3.2.0)
intercom-rails was resolved to 0.4.1, which depends on
activesupport (> 3.0)
jbuilder (~> 2.0) was resolved to 2.9.1, which depends on
activesupport (>= 4.2.0)
mailjet was resolved to 1.5.4, which depends on
activesupport (>= 3.1.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
activesupport (= 4.2.8)
rspec-rails (~> 3.5, >= 3.5.2) was resolved to 3.9.1, which depends on
activesupport (>= 3.0)
seed_dump was resolved to 3.3.1, which depends on
activesupport (>= 4)
Bundler could not find compatible versions for gem "carrierwave":
In Gemfile:
carrierwave (~> 0.11.2)
carrierwave-base64 (~> 2.3) was resolved to 2.8.1, which depends on
carrierwave (>= 0.8.0)
Bundler could not find compatible versions for gem "i18n":
In Gemfile:
rails (= 4.2.8) was resolved to 4.2.8, which depends on
activesupport (= 4.2.8) was resolved to 4.2.8, which depends on
i18n (~> 0.7)
faker was resolved to 2.11.0, which depends on
i18n (>= 1.6, < 2)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 4.2.8)
secondbase (~> 2.1.0) was resolved to 2.1.6, which depends on
rails (>= 4.0)
two_factor_authentication (~> 2.0, >= 2.0.1) was resolved to 2.2.0, which depends on
rails (>= 3.1.1)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails was resolved to 4.2.2, which depends on
railties (>= 4.0.0)
two_factor_authentication (~> 2.0, >= 2.0.1) was resolved to 2.2.0, which depends on
devise was resolved to 4.7.1, which depends on
railties (>= 4.1.0)
font-awesome-rails was resolved to 4.7.0.5, which depends on
railties (>= 3.2, < 6.1)
jquery-datatables-rails (~> 3.4) was resolved to 3.4.0, which depends on
jquery-rails was resolved to 4.3.5, which depends on
railties (>= 4.2.0)
momentjs-rails (~> 2.15, >= 2.15.1) was resolved to 2.20.1, which depends on
railties (>= 3.1)
quiet_assets was resolved to 1.1.0, which depends on
railties (>= 3.1, < 5.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
railties (= 4.2.8)
rspec-rails (~> 3.5, >= 3.5.2) was resolved to 3.9.1, which depends on
railties (>= 3.0)
Bundler could not find compatible versions for gem "rake":
In Gemfile:
rake (~> 12.0)
capistrano-figaro was resolved to 1.0.0.0, which depends on
capistrano (~> 3.1) was resolved to 3.13.0, which depends on
rake (>= 10.0.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
railties (= 4.2.8) was resolved to 4.2.8, which depends on
rake (>= 0.8.7)
Bundler could not find compatible versions for gem "ruby":
In Gemfile:
ruby (~> 2.4.1.0)
sidekiq was resolved to 6.0.7, which depends on
ruby (>= 2.5.0)
And, this is my RVM env (I'm on OSX 10.12.6):
rvm env
export PATH="/Users/zulhilmi/.rvm/gems/ruby-2.4.1/bin:/Users/zulhilmi/.rvm/gems/ruby-2.4.1#global/bin:/Users/zulhilmi/.rvm/rubies/ruby-2.4.1/bin:$PATH"
export GEM_HOME='/Users/zulhilmi/.rvm/gems/ruby-2.4.1'
export GEM_PATH='/Users/zulhilmi/.rvm/gems/ruby-2.4.1:/Users/zulhilmi/.rvm/gems/ruby-2.4.1#global'
export MY_RUBY_HOME='/Users/zulhilmi/.rvm/rubies/ruby-2.4.1'
export IRBRC='/Users/zulhilmi/.rvm/rubies/ruby-2.4.1/.irbrc'
unset MAGLEV_HOME
unset RBXOPT
export RUBY_VERSION='ruby-2.4.1'
And, this is my bundle env output.
How to read these logs and what I should do to fix them? Any tips?
I was trying to upgrade my current rails 5.0.2 version to the latest rails 5.1.0 version by running bundle update rails after adding gem 'rails', '~> 5.1' on my Gemfile and I got this error message.
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
rails (~> 5.1) was resolved to 5.1.0, which depends on
activejob (= 5.1.0) was resolved to 5.1.0, which depends on
globalid (>= 0.3.6) was resolved to 0.4.0, which depends on
activesupport (>= 4.2.0)
jbuilder (~> 2.5) was resolved to 2.6.1, which depends on
activesupport (< 5.1, >= 3.0.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
actionpack (= 5.1.0) was resolved to 5.1.0, which depends on
rails-dom-testing (~> 2.0) was resolved to 2.0.2, which depends on
activesupport (< 6.0, >= 4.2.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
sprockets-rails (>= 2.0.0) was resolved to 3.2.0, which depends on
activesupport (>= 4.0)
This sounds like you need to try and upgrade to a newer version of jbuilder. However, looking at RubyGems the current dependancies for Jbuilder still say:
activesupport < 5.1, >= 3.0.0
IF this is the case, JBuilder doesn't yet support the more recent Activesupport, now required by Rails 5.1 - so perhaps JBuilder isn't yet available in Rails 5.1.
If you need to get the newer Rails, then you should probably consider:
Checking to see if there is a roadmap in JBuilder for this.
Raising a JBuilder ticket requesting support for that later Rails version.
You could try an override - since it may potentially just work, and that <5.1 is just since it's not yet been tested with the more recent version - just be prepared for glitches if there are genuine compatibility issues. I'd definitely rerun the whole of your test suite after trying that.
The alternative is to wait a little bit - this is a very fresh release - give other packages a chance to catch up with it.
Deleting Gemfile.lock then running bundle worked for me
Upgraded my Rails 4.2.5 app to 5 and now I get this error when doing bundle install:
bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activejob (= 5.0.0) was resolved to 5.0.0, which depends on
globalid (>= 0.3.6) was resolved to 0.3.7, which depends on
activesupport (>= 4.1.0)
google-webfonts-rails (~> 0.0.4) was resolved to 0.0.4, which depends on
activesupport (< 5.0, > 3.2.0)
jbuilder (~> 2.5) was resolved to 2.6.0, which depends on
activesupport (< 5.1, >= 3.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
actionpack (= 5.0.0) was resolved to 5.0.0, which depends on
rails-dom-testing (~> 2.0) was resolved to 2.0.1, which depends on
activesupport (< 6.0, >= 4.2.0)
spring was resolved to 2.0.0, which depends on
activesupport (>= 4.2)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
sprockets-rails (>= 2.0.0) was resolved to 3.2.0, which depends on
activesupport (>= 4.0)
Fairly new to rails and never ran into to this problem before. I tried gem update and bundle update, but still get this error.
Thank you.
Your problem is explained here:
google-webfonts-rails (~> 0.0.4) was resolved to 0.0.4, which depends on
activesupport (< 5.0, > 3.2.0)
You need to use a more recent version of the google-webfonts-rails gem, once that supports rails 5, or you need to get rid of that gem entirely.