ffi: Can't install with Ruby 2.5
Could you support Ruby 2.5?
$ bundle update
Fetching gem metadata from https://rubygems.org/............
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies.......
Using concurrent-ruby 1.0.5
Using i18n 0.9.1
Using minitest 5.10.3
Using thread_safe 0.3.6
Using tzinfo 1.2.4
Using activesupport 4.2.9
Using public_suffix 2.0.5
Using addressable 2.5.2
Using bundler 1.16.1
Using coffee-script-source 1.11.1
Using execjs 2.7.0
Using coffee-script 2.4.1
Using colorator 1.1.0
Using ruby-enum 0.7.1
Using commonmarker 0.17.7.1
Fetching ffi 1.9.18 (x64-mingw32)
Installing ffi 1.9.18 (x64-mingw32)
Gem::RuntimeRequirementNotMetError: ffi requires Ruby version < 2.5, >= 2.0. The
current ruby version is 2.5.0.
An error occurred while installing ffi (1.9.18), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.18'` succeeds before bundling.
In Gemfile:
github-pages was resolved to 172, which depends on
github-pages-health-check was resolved to 1.3.5, which depends on
typhoeus was resolved to 0.8.0, which depends on
ethon was resolved to 0.11.0, which depends on
ffi
$ gem install ffi -v '1.9.18'
ERROR: Error installing ffi:
The last version of ffi (= 1.9.18) to support your Ruby & RubyGems was 1.9.18. Try installing it with `gem install ffi -v 1.9.18`
ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 23
- Comments: 17 (2 by maintainers)
Commits related to this issue
- Bump rake-compiler-dock dependency to add ruby-2.5 support Fixes #598 — committed to larskanis/ffi by larskanis 6 years ago
- Bump rake-compiler-dock dependency to add ruby-2.5 support (#599) Fixes #598 — committed to ffi/ffi by larskanis 6 years ago
I used
gem install ffi -f
to get around this in Ruby 2,5 under Windows. I haven’t tested it yet, but it gets me past the error message.Oh, nevermind, I ran a
bundle update
and everything’s fixed for me 👍the above install issue is resolved with -f flag. However it creates other issues with resources dependent on ffi which fails to validate against the lastest ruby versions. For example
bundler install
on a fresh jekyll project will result in the following:Seems the most current ruby version convention is problematic.
You can go around this by manually installing gems…
@tduehr, @headius Could you please publish a new release, so that ffi works out of the box on Windows ruby-2.5?
Sorry about this folks, I’m getting new FFI gems pushed as we speak for #602.
Now getting the same thing for Ruby 2.7:
I forced the install of the gem, and now I get this when running
bundle install
NVM -
bundle update
fixed for ffi… now getting for nokogiri. Guess I’ll go find that repo now…@vbortone , thanks, really helped
Thanks a lot @vbortone! Your solution worked for me as well, on Windows 10. I was finally able to install sass gem after using it. 👍