Could not find gems (= 2.2.2.backport2) ruby 'in gems available on this machine
I have a problem with my gemset.
I created a new one after a fresh install on my machine, just one step after cloning the repo.
Running bundle install
but I am getting this error
Could not find gem 'sprockets (= 2.2.2.backport2) ruby' in the gems available on this machine
I am using Rails 3.2.11 and ruby 2.1 I followed the bootstrap-sass
Readme suggestion
But it doesn't work.
Here is part of my Gemfile with asset group
group :assets do
gem 'sass-rails', " ~> 3.2.3"
gem 'compass-rails'
gem 'sprockets-rails', '=2.0.0.backport1'
gem 'sprockets', '=2.2.2.backport2'
gem 'bootstrap-sass', '~> 3.1.1'
gem 'coffee-rails', "~> 3.2.1"
gem 'uglifier', '>=1.0.3'
gem 'eco'
gem 'i18n-js'
end
The project works on other machines. What can I do?
UPDATE QUESTION
Now I have the same problem, but with rbenv
, and I don't know how to solve it because it rbenv
doesn't have a gemset!
source to share
I solved the problem by following these steps:
- Modify the gemfile, replacing the gem with the
sass-rails
following:gem 'sass-rails', github: 'guilleiguaran/sass-rails', branch: 'backport'
- Create and use a new empty Gemset
- Go here and download this star gem 2.2.2 backport2
- Copy the downloaded gem to the vendor / cache section
- run
bundle install
This should fix the problem with this gem sprockets (= 2.2.2.backport2) ruby
because it will be installed downloaded.
source to share
I had the same problem yesterday. A colleague of mine came across a Twitter chat that points to a new fork of Sprockets with the 2.2.2.backport2
-type tag .
You can get it on GitHub or add it to yours Gemfile
:
gem 'sprockets', github: 'tessi/sprockets', branch: '2_2_2_backport2'
source to share
Not the best one, but I found a gem and pinned it (put it in vendor / cache) based on this: https://github.com/aliw77/sprockets-2.2.2.backport2 . I have a feeling there is another solution still looking for it.
source to share