Bundler could not find compatible versions for gem "solidus_i18n": - ruby-on-rails

I am trying to install solidus_globalize but I get this error:
Bundler could not find compatible versions for gem "solidus_i18n":
In Gemfile:
solidus_i18n
solidus_globalize was resolved to 3.1.0.beta, which depends on
solidus_i18n (~> 1.0)
In gemfile:
gem 'globalize', github: 'globalize/globalize'
gem 'solidus_i18n', github: 'solidusio-contrib/solidus_i18n'
gem 'solidus_globalize', github: 'solidusio-contrib/solidus_globalize'

gem 'globalize'
gem 'solidus_i18n'
gem 'solidus_globalize', github: 'solidusio-contrib/solidus_globalize'
Worked for me on rails 5.

Related

Rail Can't find Railites - RBENV

RUBY 2.7.6
Bundler version 2.1.4
No matter what version of rails I use in the GEMFILE
I get the following error
undler could not find compatible versions for gem "railties":
In Gemfile:
rails (= 6.0.0) was resolved to 6.0.0, which depends on
railties (= 6.0.0)
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '6.1.0'
# Use mysql as the database for Active Record
gem 'mysql2', '~> 0.3.18'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
This is maybe because you have an outdated version of sass-rails.
Try the followings steps:
Remove gem versions for sass-rails from Gemfile.lock and run bundle update
If above didnt work, delete the Gemfile.lock and run bundle install, if you have no conflicting explicit gem version in your Gemfile to start with. So if this fails, remove version numbers from the Gemfile.
Hope this helps!

rails error Bundler could not find compatible versions for gem gem "spree_backend"

I want to configure email setting in spree
I add this gem according to this tutorial https://guides.spreecommerce.com/user/configuring_mail_methods.html
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: 'master'
But running bundle install gives me the following error:
Bundler could not find compatible versions for gem "spree_backend":
In snapshot (Gemfile.lock):
spree_backend (= 3.0.7)
In Gemfile:
spree (~> 3.0.7) was resolved to 3.0.7, which depends on
spree_backend (= 3.0.7)
spree_mail_settings was resolved to 2.2.0, which depends on
spree_backend (~> 3.1.0.beta)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Running bundle update gives me this:
Bundler could not find compatible versions for gem "spree_backend":
In Gemfile:
spree_mail_settings was resolved to 2.2.0, which depends on
spree_backend (~> 3.1.0.beta)
Could not find gem 'spree_backend (~> 3.1.0.beta)', which is required by gem
'spree_mail_settings', in any of the sources.
in my gemfile I have:
gem 'spree', '~> 3.0.7'
gem 'spree_gateway', '~> 3.0.0'
gem 'spree_auth_devise', '~> 3.0.0'
gem 'spree_i18n', git: 'git://github.com/spree/spree_i18n.git', branch: '3-0-stable'
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: 'master'
I tried to write like this gem 'spree', '~> 3.1.0' but it didn't work
~> 3.0.7 is equivalent to >= 3.0.7 and <3.1
Rather than trying to tease apart what is and isn't compatible, I would install it like:
gem 'spree'
gem 'spree_gateway'
gem 'spree_auth_devise'
gem 'spree_i18n', git: 'git://github.com/spree/spree_i18n.git', branch: '3- 0-stable'
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: 'master'
then I'd bundle install and bundle update. I'd then check the gemfile.lock and see what the gems versioned themselves to. Hopefully it resolves appropriately.
Delete your Gemfile.lock file then run bundle installand bundle update. I'm not assure this options should work,just try it.

Bundler could not find compatible versions for gem "haml":

I got following error after "bundle install"
Bundler could not find compatible versions for gem "haml":
In Gemfile:
haml-rails (>= 0) ruby depends on
haml (< 5.0, >= 4.0.6) ruby
haml (= 4.0.3) ruby
In the Gemfile:
gem "haml-rails", :git => "git://github.com/indirect/haml-rails.git"
how could I resolve this issue?
I think your Gemfile contains something like:
gem 'haml', '4.0.3'
change it to:
gem 'haml', '~> 4.0.3'
and run bundle install.

Rails: Error installing activeadmin

I have a rails project, and i want to install the activeadmin gem. So i have added this to the gemfile:
gem 'activeadmin'
gem "meta_search"
The problem is that when i run the bundle command, i get this error:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
activeadmin (>= 0) ruby depends on
meta_search (>= 0.9.2) ruby depends on
actionpack (~> 3.0.0.rc2) ruby
less-rails (>= 0) ruby depends on
actionpack (4.1.8)
Do you know how can i fix this?
If you are using rails 5.1 or above
gem 'inherited_resources', git: 'https://github.com/activeadmin/inherited_resources'
gem 'activeadmin', git: 'https://github.com/activeadmin/activeadmin'
If you are using rails 4
gem 'activeadmin', github: 'activeadmin/activeadmin', branch: :master
If you are using rails 4 with gem 'mongoid','~> 5.0.0' then add
gem 'activeadmin', github: 'Zhomart/active_admin', branch: 'mongoid-old'
Try this. Hope it will work :)
In place of both gems in your Gemfile, replace them with:
gem 'activeadmin', github: 'activeadmin'
If you are using rails 5 You have to install inherited_resources gem with active_admin
gem 'activeadmin', github: 'activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources'
Try this.Hope it's helpfull

Rails 4 I can't install gems

Hello I want to install these
gem 'activeadmin',
gem "meta_search", '>= 1.1.0.pre'
gems to my project but I got error like this
Bundler could not find compatible versions for gem "actionpack":
In snapshot (Gemfile.lock):
actionpack (4.0.2)
In Gemfile:
meta_search (>= 1.1.0.pre) ruby depends on
actionpack (~> 3.1.0.alpha) ruby
How I can solve these problems
Meta_search doesn't support rails 4. So you're getting a conflict.
Suggest you have a look at Ransack instead, which is basically a ground up rewrite of meta-search. If you're using rails 3, then you need to specify this in your Gemfile.
Active Admin has a few other dependencies as well. Check this out Active Admin install with Rails 4.
Copy and paste all the gems (in the top answer) to your gemfile and you should not have any issues running bundle.
just put
"meta_search", '>= 1.1.0.pre'
before
gem 'activeadmin'
this should solve your problem
gem 'devise', github: 'plataformatec/devise'
gem 'responders', github: 'plataformatec/responders'
gem 'inherited_resources', github: 'josevalim/inherited_resources'
gem 'ransack', github: 'ernie/ransack'
gem 'activeadmin', github: 'gregbell/active_admin'
gem 'formtastic', github: 'justinfrench/formtastic'
it's worked

Resources