I add in my gem file
gem 'refinerycms', '~> 2.1.3'
and after I run bundle install which fails with the following error
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
**Bundler could not find compatible versions for gem "sass-rails":**
In Gemfile:
refinerycms (~> 2.1.3) x86-mingw32 depends on
refinerycms-core (= 2.1.3) x86-mingw32 depends on
sass-rails (~> 3.2.3) x86-mingw32
sass-rails (4.0.3)
but when I add, gem without version
gem 'refinerycms'
it works. how can I solve this problem to add latests verssion of refinery cms for my existing project.
Related
https://github.com/jhu-ep-coursera/fullstack-course3-module3-movies
I use this repo , I run rake db:seed Project want sqlite update and I add gem 'sqlite3', '~> 1.3.13' in Gemfile .
Project gives an error
(base) ➜ fullstack-course3-module3-movies git:(master) ✗ bundle
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.2.4) was resolved to 4.2.4, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.0.1)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails (= 4.2.4)', in any of the sources.
You got Bundler 2.0.1 installed on your computer, but apparently your Gemfile requires bundler (< 2.0, >= 1.3.0).
You can install the required bundler version like this:
gem install bundler --version=1.x.y
I currently am running Rails 5.0.2 with bundler(<2.0, >=1.3.0). This morning when I ran 'gem install bundler', it ended up installing bundler 2.0.1 which is now incompatible with Rails 5.0.2. I'm wondering if I should be upgrading my Rails version or downgrading the bundler version. Please see the log from my jenkins build below.
gem install bundler
Successfully installed bundler-2.0.1
Parsing documentation for bundler-2.0.1
Done installing documentation for bundler after 5 seconds
1 gem installed
bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (~> 5.0.2) was resolved to 5.0.2, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.0.1)
This Gemfile requires a different version of Bundler.
try
gem update --system
after
bundle install
I was trying to install spree_wallet, spree_drop_ship and spree_marketplace in spree app I am using.
However, there occurred different problems while installing these gems.
1) I could successfully install bundle for gem spree_wallet but while installing bundle exec rails g spree_wallet:install it gives me the error
Could not find generator 'spree_wallet:install'. Maybe you meant 'spree:auth:install', 'spree_gateway:install' or 'spree:install'
Run `rails generate --help` for more options.
2) When I add the spree_marketplace and spree_drop_ship to the gemfile and execute bundle install , it gives me different version conflict errors.
Bundler could not find compatible versions for gem "spree_core":
In snapshot (Gemfile.lock):
spree_core (= 3.0.4)
In Gemfile:
spree_core (= 3.0.4) ruby
spree_core (~> 3.0.0) ruby
spree_core (~> 3.0.0) ruby
spree_core (>= 0) ruby
spree_drop_ship (>= 0) ruby depends on
spree_core (~> 3.1.0.beta) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
3) Similarly, when I drop the spree_drop_ship from gemfile, spree_marketplace gives the error saying no gem spree_drop_ship found, which I think is necessary for the working of marketplace gem
Is there any workaround to resolve the issues without downgrading the spree from current version 3.0.4 ??
For those who are struggling with same, I found the solution with adding below gems
gem 'spree_drop_ship', github: 'spree-contrib/spree_drop_ship', branch: '3-0-stable'
gem 'spree_marketplace', github: 'firman/spree_marketplace'
firman/spree_marketplace is forked from spree-contrib/spree_marketplace and resolves the dependency issue
I've attempted to install Rails 4.2.0.beta1 (released Aug 20, 2014). I get an error Bundler could not find compatible versions for gem "sprockets-rails". Here are the details:
$ bundle update rails
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "sprockets-rails":
In Gemfile:
sass-rails (~> 4.0.3) ruby depends on
sprockets-rails (~> 2.0) ruby
rails (= 4.2.0.beta1) ruby depends on
sprockets-rails (3.0.0.beta1)
How can I install Rails 4.2.0.beta1?
You have a sass-rails gem in your Gemfile. You need to change the version of sass-rails to '5.0.0.beta1'. And then run bundle update sass-rails rails.
You could find some useful info at this sprockets-rails issue.
P.S.: Moreover I have the same problem with rails_admin which I reported here.
I'm trying to install the bundles but it can't install twitter-1.6.2 in specific.
mauricio#mauricio-ubuntu:$ bundle install
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Could not find twitter-1.6.2 in any of the sources
Could someone help?
Gemfile:
gem 'twitter'
Gemfile.lock:
twitter (1.6.2)
faraday (~> 0.7.4)
faraday_middleware (~> 0.7.0)
hashie (~> 1.1.0)
multi_json (~> 1.0.0)
multi_xml (~> 0.2.0)
simple_oauth (~> 0.1.5)
I'm using ruby 1.8.7-p334 (I know, it's old).
Thanks!
$ gem list ^twitter$ --remote --all
*** REMOTE GEMS ***
twitter (4.8.1, 4.8.0, 4.7.0, 4.6.2, 4.6.1, 4.6.0, 4.5.0, 4.4.4, 4.4.3, 4.4.2, 4.4.1, 4.4.0, 4.3.0, 4.2.0, 4.1.2, 4.1.1, 4.1.0, 4.0.0)
You aren't even close.
Ahh,
1) Go here:
https://rubygems.org/gems/twitter/
2) Scroll to the bottom, and click on Show all versions.
3) Click on 1.6.2.
4) Now even though the next page doesn't show version 1.6.2 in the list of versions, just click on the Download link(above the list of versions)
5) Install the gem:
If you are using rvm, switch to whatever gemset you created for your current project.
Install the twitter gem:
$ gem install --local /path/to/twitter.gem
The bundle install command is not supposed to go looking for gems to download if the version specified in your Gemfile is already installed. To be safe, I would change the twitter line in your Gemfile to this:
gem 'twitter', '1.6.2'