Could not find ffi in any of the sources

In OS X 10.9.5 ...

Gemfile

source 'https://rubygems.org'

gem 'rails', '4.2.0'
gem 'sass-rails', '5.0.4'
gem 'uglifier', '2.7.2'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.5'
gem 'turbolinks', '2.5.3'
gem 'jbuilder', '2.3.1'
gem 'sdoc', '0.4.1', group: :doc
gem 'mongoid', '4.0.2'
gem 'mongoid-grid_fs', '2.1.0'
gem 'watir-rails', '1.1.0'

group :development, :test do
  gem 'byebug', '6.0.2'
  gem 'web-console', '2.2.1'
  gem 'spring', '1.3.6'
end

Terminal

$ bundle install
...
Installing ffi 1.9.10 with native extensions
...
Bundle complete! 14 Gemfile dependencies, 68 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ bundle show ffi
/Users/me/.rvm/gems/ruby-2.2.2/gems/ffi-1.9.10
$ rails c
Could not find ffi-1.9.10 in any of the sources
Run `bundle install` to install missing gems

I tried placing the "gem" ffi ',' 1.9.10 '' in my gemfile.

I tried to delete my Gemfile.lock and repeat this process.

I have tried bundle exec rails c.

I tried gem install ffi --version 1.0.11, which seems to be a dependency for childprocess-0.5.6.

None of these attempts make any difference. Any ideas?

+4
source share
1 answer

I encountered the same error just now, I decided using gem pristine --all

+1
source

Source: https://habr.com/ru/post/1606495/


All Articles