So i'm using ruby2/rails4 and trying to use the latest version of sass gem (currently 3.3.9) and i'm using compass gem to, that have a dependencie (sass 3.2.0)
so when i try to update gem i got it:
Bundler could not find compatible versions for gem "sass":
In Gemfile:
sass-rails (= 4.0.3) ruby depends on
sass (~> 3.2.0) ruby
sass (3.3.9)
i need the latest version cause sass now have a random() function it is very usefull
Install the current pre version of Compass:
gem install compass --pre
It has a Sass dependency of:
< 3.5, >= 3.3.0
so it should be compatible with that version of Sass and allow random(). See https://rubygems.org/gems/compass/versions/1.0.0.alpha.21 for more on the alpha version of Compass.
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
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.
I was going through my Gemfile updating to the latest releases when I got this error:
Bundler could not find compatible versions for gem "mime-types":
In Gemfile:
rails (= 4.0.2) ruby depends on
mime-types (~> 1.16) ruby
mechanize (= 2.7.3) ruby depends on
mime-types (2.0)
Is it true that Rails 4.0.2 is depending on a much older version of mime-types than a lot of gems that are out there or is there something wrong with my local configuration?
P.S. I tried updating the dependencies with ´bundle update´, but I just got the same error again.
rails requires mime-types with a version of 1.16 or greater, but smaller than 2.0. However, mechanize requires mime-types with a version of 2.0 or greater.
I suggest you drop the mechanize-version to 2.7.2:
gem 'mechanize', '2.7.2'
This will resolve your conflict.
Am using spree 2.0.3 and I want to install the forem (forum engine ) gem version 0.0.1
when I run bundle install I got this :
Bundler could not find compatible versions for gem "cancan":
In Gemfile:
spree (= 2.0.3) ruby depends on
cancan (= 1.6.8) ruby
forem (>= 0) ruby depends on
cancan (1.6.10)
I had faced the same problem , had to use an earlier version of cancan for forem and it worked fine .
Bundler could not find compatible versions for gem "builder": In
Gemfile:
rails (= 3.1.1) depends on
builder (~> 3.0.0)
feedzirra (~> 0.1.1) depends on
builder (2.1.2)
Does it mean, that the latest feedzirra version is incompatible with the latest rails version?
According to archiloque, "It's already done in commit 26532da, I just need to release a new version the includes this change"
For now, putting this in your Gemfile should fix that issue:
gem 'feedzirra', :git => 'https://github.com/pauldix/feedzirra.git'
The specific revision that worked for me is:
remote: https://github.com/pauldix/feedzirra.git
revision: dee1454980e7b93022776cd047ad419da3999332