开发者

Can't install ffi gem, Rails fail

开发者 https://www.devze.com 2023-04-06 01:27 出处:网络
While creating creating an integration test via rails generate integration_test foo it declined with Could not find ffi-1.0.9 in any of the sources

While creating creating an integration test via rails generate integration_test foo it declined with

Could not find ffi-1.0.9 in any of the sources
Run `bundle install` to install missing gems.

I ran bundle install to install missing gems, but with no success. Still the same error. I have gem 'ffi' in my Gemfile.

I switched the gemf开发者_开发技巧ile line to gem 'ffi', :git => 'git://github.com/ffi/ffi.git' and bundle installed again. It did all sort of stuff and wrote "Your bundle is complete" at the end.

However when I run the rails generate... command again I get:

git://github.com/ffi/ffi.git (at master) is not checked out. Please run 'bundle install'

What the hell is going on with this ffi?


I ran into the same problem and solved it by removing the Gemfile.lock and re-run bundle install.


Perhaps try 'bundle exec rails generate...'


bundle install was failing because it could ffi failed with NoMethodError for spec.

Removing Gemfile.lock, empty the gemset and doing bundle install worked.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号