Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your bundle is locked to ffi (1.11.0), but that version could not be found in any of the sources listed in your Gemfile

I get this error when starting the rails server: I've tried gem install, gem update, bundle update, bundle install.

Your bundle is locked to ffi (1.11.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of ffi
(1.11.0) has removed it. You'll need to update your bundle to a version other than ffi (1.11.0) that hasn't been removed in order to install.

can you help? thank you!

source 'https://rubygems.org'
ruby '2.5.3'

gem 'bootsnap', require: false
gem 'jbuilder', '~> 2.0'
gem 'pg', '~> 0.21'
gem 'puma'
gem 'shopify_app'
gem 'rails', '5.2.3'
gem 'redis'
gem 'devise'

gem 'autoprefixer-rails'
gem 'font-awesome-sass', '~> 5.6.1'
gem 'sassc-rails'
gem 'simple_form'
gem 'uglifier'
gem 'webpacker'

group :development do
  gem 'web-console', '>= 3.3.0'
end

group :development, :test do
  gem 'pry-byebug'
  gem 'pry-rails'
  gem 'listen', '~> 3.0.5'
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
  gem 'dotenv-rails'

end

this is my rake file:

require_relative 'config/application'

Rails.application.load_tasks

like image 791
developing Avatar asked May 29 '19 10:05

developing


People also ask

How do I install bundles to install missing gems?

Select Tools | Bundler | Install from the main menu. Open the Gemfile, place the caret at any highlighted gem missing in the project SDK and press Alt+Enter . Select Install missing gems using 'bundler' and press Enter .

How do I update my bundler?

Upgrading applications from Bundler 1 to Bundler 2 Bundler will never change your application to a new major version until you choose to do so. If your application is ready, you can upgrade that application to the latest installed version of Bundler by running bundle update --bundler .

What is FFI gem?

Ruby-FFI is a gem for programmatically loading dynamically-linked native libraries, binding functions within them, and calling those functions from Ruby code.


1 Answers

The issue you're hitting is that bundler could not find that version of ffi. You most likely installed it originally when creating the project or adding a gem. The ffi version 1.11.0 was pulled from RubyGems.

Run bundle update on your project to get the latest version, which is 1.11.1 as of today. That should fix your issue as when you deploy next when heroku runs bundler, it will pick up that version from RubyGems.

like image 147
DogEatDog Avatar answered Sep 28 '22 02:09

DogEatDog