My rails version is 3.2.12.
I am trying to implement gem "joyride-rails", "~> 0.0.14" in my application, but it clashes with some of my other gems. Already in my Gemfile:
gem "haml-rails", ">= 0.4"
gem 'activeadmin-mongoid', github: 'elia/activeadmin-mongoid', branch: 'active-admin-spec-suite'
When I run the bundle command, I get this error:
Bundler could not find compatible versions for gem "haml":
In Gemfile:
joyride-rails (~> 0.0.14) ruby depends on
haml (~> 3.1) ruby
haml-rails (>= 0.4) ruby depends on
haml (4.0.3)
So, if I add the gem "haml", "~> 4.0.3" the new bundle clash is:
Bundler could not find compatible versions for gem "bourbon":
In Gemfile:
joyride-rails (~> 0.0.14) ruby depends on
bourbon (~> 2.0) ruby
activeadmin-mongoid (>= 0) ruby depends on
bourbon (3.1.8)
And if I then add the gem "bourbon", "~> 3.1.8" I get this new clash:
Bundler could not find compatible versions for gem "bourbon":
In Gemfile:
joyride-rails (~> 0.0.14) ruby depends on
bourbon (~> 2.0) ruby
bourbon (3.1.8)
What to do?
Github Issue
The gem currently can't be used with the latest version of haml. (c)
I think, u can downgrade your haml version, if possible.
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 just updated from Rails 4.2 to Rails 5.0 and am having serious Gemfile issues. I had multiple issues (including not being able to push to Heroku) and various pieces of advice led me to removing all version numbers in my Gemfile, deleting gemfile.lock and running bundle install.
Running bundle install took over 8 hours. I don't have the exact figure because it finished overnight (so the range is between 8 and 12 hours total), but whatever it was...it was unacceptably long. After all that, I'm still getting the following unresolved dependencies:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
actionpack (= 5.0.0)
simple_form_extension was resolved to 1.4.10, which depends on
simple_form was resolved to 4.0.1, which depends on
actionpack (>= 5.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
paperclip was resolved to 6.0.0, which depends on
activemodel (>= 4.2.0)
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
activemodel (= 5.0.0)
simple_form_extension was resolved to 1.4.10, which depends on
simple_form was resolved to 4.0.1, which depends on
activemodel (>= 5.0)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
acts-as-taggable-on was resolved to 6.0.0, which depends on
activerecord (~> 5.0)
friendly_id was resolved to 5.2.4, which depends on
activerecord (>= 4.0.0)
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
activerecord (= 5.0.0)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
paperclip was resolved to 6.0.0, which depends on
activesupport (>= 4.2.0)
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rename was resolved to 1.0.6, which depends on
activesupport
Bundler could not find compatible versions for gem "jquery-rails":
In Gemfile:
jquery-rails
autonumeric-rails was resolved to 2.0.0.1, which depends on
jquery-rails (>= 2.0.2)
Bundler could not find compatible versions for gem "nokogiri":
In Gemfile:
rets was resolved to 0.11.0, which depends on
nokogiri (~> 1.5)
rubillow was resolved to 0.0.8, which depends on
nokogiri (~> 1.5.0)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 5.0.0)
Could not find gem 'rails (~> 5.0.0)' in any of the sources.
Bundler could not find compatible versions for gem "railties":
In Gemfile:
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
railties (= 5.0.0)
sass-rails was resolved to 3.2.6, which depends on
railties (~> 3.2.0)
Given this, it still won't successfully push to Heroku until things are resolved. My current Gemfile is this:
source 'https://rubygems.org'
gem 'rails', '~> 5.0.0'
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :development do
gem 'sqlite3'
gem 'binding_of_caller'
gem 'better_errors'
gem 'quiet_assets'
gem 'byebug'
gem 'pry-rails'
end
gem 'bootstrap-sass'
gem 'sass-rails'
gem 'uglifier'
gem 'coffee-rails'
gem 'jquery-rails'
gem 'bcrypt'
gem 'friendly_id'
gem 'devise'
gem 'stripe'
gem 'ckeditor_rails'
gem 'paperclip'
gem 'figaro'
gem 'magnific-popup-rails'
gem 'simple_form'
gem 'ionicons-rails'
gem 'autonumeric-rails'
gem 'acts-as-taggable-on'
gem 'aws-sdk'
gem 'rename'
gem 'rubillow'
gem 'rillow', github: "hiattp/rillow"
gem 'httparty'
gem 'social-share-button'
gem 'rest-client'
gem 'nori'
gem 'typedjq-rails'
gem 'httpclient'
gem 'rets'
gem 'simple_form_extension'
gem 'high_voltage'
gem 'redactor-rails', github: 'glyph-fr/redactor-rails'
Can anyone help me troubleshoot this? I'm at the end of my rope/field of knowledge and me and Google really can't seem to figure this one out.
I recently tried (heavy emphasis on tried here) to update my app from Rails 4.2 to Rails 5.0. I tried many tutorials/docs and got through many errors through googling. I got it to a working version, but then it didn't run on Heroku...a gemfile mess. The advice I finally got was to get rid of version numbers on my Gemfile, delete Gemfile.lock and rerun bundle install.
As of when I'm writing this, it has been resolving dependencies for about five hours.
In case it matters, here's my current Gemfile:
source 'https://rubygems.org'
gem 'rails', '~> 5.0.0'
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :development do
gem 'sqlite3'
gem 'binding_of_caller'
gem 'better_errors'
gem 'quiet_assets'
gem 'byebug'
gem 'pry-rails'
end
gem 'bootstrap-sass'
gem 'sass-rails'
gem 'uglifier'
gem 'coffee-rails'
gem 'jquery-rails'
gem 'bcrypt'
gem 'friendly_id'
gem 'devise'
gem 'stripe'
gem 'ckeditor_rails'
gem 'paperclip'
gem 'figaro'
gem 'magnific-popup-rails'
gem 'simple_form'
gem 'ionicons-rails'
gem 'autonumeric-rails'
gem 'acts-as-taggable-on'
gem 'aws-sdk'
gem 'rename'
gem 'rubillow'
gem 'rillow', github: "hiattp/rillow"
gem 'httparty'
gem 'social-share-button'
gem 'rest-client'
gem 'nori'
gem 'typedjq-rails'
gem 'httpclient'
gem 'rets'
gem 'simple_form_extension'
gem 'high_voltage'
gem 'redactor-rails', github: 'glyph-fr/redactor-rails'
I'm in way over my head here and between me and some fairly extensive Googling I still can't figure it out. Any advice or wisdom is appreciated.
UPDATE
It finished (8+ hours later), but I still have a great number of unresolved dependencies:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
actionpack (= 5.0.0)
simple_form_extension was resolved to 1.4.10, which depends on
simple_form was resolved to 4.0.1, which depends on
actionpack (>= 5.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
paperclip was resolved to 6.0.0, which depends on
activemodel (>= 4.2.0)
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
activemodel (= 5.0.0)
simple_form_extension was resolved to 1.4.10, which depends on
simple_form was resolved to 4.0.1, which depends on
activemodel (>= 5.0)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
acts-as-taggable-on was resolved to 6.0.0, which depends on
activerecord (~> 5.0)
friendly_id was resolved to 5.2.4, which depends on
activerecord (>= 4.0.0)
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
activerecord (= 5.0.0)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
paperclip was resolved to 6.0.0, which depends on
activesupport (>= 4.2.0)
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rename was resolved to 1.0.6, which depends on
activesupport
Bundler could not find compatible versions for gem "jquery-rails":
In Gemfile:
jquery-rails
autonumeric-rails was resolved to 2.0.0.1, which depends on
jquery-rails (>= 2.0.2)
Bundler could not find compatible versions for gem "nokogiri":
In Gemfile:
rets was resolved to 0.11.0, which depends on
nokogiri (~> 1.5)
rubillow was resolved to 0.0.8, which depends on
nokogiri (~> 1.5.0)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 5.0.0)
Could not find gem 'rails (~> 5.0.0)' in any of the sources.
Bundler could not find compatible versions for gem "railties":
In Gemfile:
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
railties (= 5.0.0)
sass-rails was resolved to 3.2.6, which depends on
railties (~> 3.2.0)
So I guess the problem is technically "fixed", but I'd still love to know why this took so long if anyone has answers.
In Gemfile I had:
gem 'bootstrap-sass', '~> 3.0.3.0'
I have now changed it to the following, which is the latest version at the time of this writing:
gem 'bootstrap-sass', '~> 3.1.1.1'
Taking a look at both bootstrap-sass (3.0.3.0) and bootstrap-sass (3.1.1.1) on RubyGems.org, I see that both versions have runtime dependencies of:
sass ~> 3.2
Taking a look at sass itself, I see that it has no runtime dependencies, and that its latest version is:
gem 'sass', '~> 3.3.7'
After making the change mentioned above (to bootstrap-sass) I ran bundle, and saw the following:
...
Using sass 3.2.19
Installing bootstrap-sass 3.1.1.1 (was 3.0.3.0)
...
My question is why wasn't sass updated, and how can I update it without referencing it in Gemfile?
For what it's worth, here is some more info:
-bash> grep sass Gemfile.lock
bootstrap-sass (3.1.1.1)
sass (~> 3.2)
sass-rails (~> 4.0)
sass (3.2.19)
sass-rails (4.0.3)
sass (~> 3.2.0)
bootstrap-sass (~> 3.1.1.1)
sass-rails (~> 4.0.3)
As you noted, both bootstrap-sass versions (3.0.3.0 and 3.1.1.1) have a dependency of:
sass ~> 3.2
What this means is that they require the highest 3.2.x version of sass, but not 3.3. That's what the ~> means, and that is why your sass is 3.2.19.
So even if you explicitly say:
gem 'sass', '~> 3.3.7'
Bundler won't update it because it sees that bootstrap-sass depends on a lower version of sass.
For a my application I am trying to upgrade Ruby on Rails from version 3.2.13 to 4.0.0 and I am in trouble when installing / updating some gem (by using the Bundler), specifically the globalize3 gem. I am running Ruby 2.0.0-p247.
Given my Gemfile is:
gem 'rails', '4.0.0'
gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4'
gem 'delayed_job', :git => 'git://github.com/collectiveidea/delayed_job.git', :branch => 'master'
gem 'delayed_job_active_record', :git => 'git://github.com/collectiveidea/delayed_job_active_record.git', :branch => 'master'
# Added these gems to help with the transition to rails4:
gem 'protected_attributes'
gem 'rails-observers'
gem 'actionpack-page_caching'
gem 'actionpack-action_caching'
gem 'activerecord-deprecated_finders'
When I run the bundle install command in the Terminal window
Then I get the following output:
Updating git://github.com/svenfuchs/globalize3.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 "activerecord":
In Gemfile:
globalize3 (>= 0) ruby depends on
activerecord (~> 3.0) ruby
delayed_job_active_record (>= 0) ruby depends on
activerecord (4.0.0)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
globalize3 (>= 0) ruby depends on
rails (~> 3) ruby
rails (4.0.0)
When I run the bundle update command in the Terminal window
Then I get the following output:
Updating git://github.com/collectiveidea/delayed_job.git
Updating git://github.com/collectiveidea/delayed_job_active_record.git
Updating git://github.com/svenfuchs/globalize3.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 "rails":
In Gemfile:
globalize3 (>= 0) ruby depends on
rails (~> 3) ruby
rails (4.0.0)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
globalize3 (>= 0) ruby depends on
railties (~> 3.0) ruby
coffee-rails (~> 4.0.0) ruby depends on
railties (4.0.0)
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (= 4.0.0) ruby depends on
actionpack (= 4.0.0) ruby
actionpack-action_caching (>= 0) ruby depends on
actionpack (4.0.0.rc2)
How can I solve the problem? Is the globalize3 gem really compatible with Ruby on Rails 4? Is it advisable to wait for upgrading to Ruby on Rails 4?
Note: I seen the #415 Upgrading to Rails 4 railscast and I made many searches on the Internet (the most reasonable discussion is "Globalize3 does not work with Rails4") about the problem, but I am still in trouble.
The globalize3 gem has been renamed globalize and major version numbers now correspond to the corresponding version of ActiveRecord (3.x for AR3 and 4.x for AR4).
So all you need to do is put this in your Gemfile, and you should not get any conflict:
gem 'globalize', '~> 4.0.0.alpha.2'
See also the github repository for more details.
Try using rails4 branch to avoid upgrading issue.
gem 'globalize3', git: 'https://github.com/svenfuchs/globalize3.git', branch: 'rails4'
However, you may still meet some issues, because it's not stable branch.