nio4r "Failed to build gem native extension."
Saad Shakil

Saad Shakil @codedir

About: Professional full stack Software Engineer, most recently working with Python in Django, Ruby on Rails, and React with JavaScript and TypeScript

Joined:
Aug 26, 2024

nio4r "Failed to build gem native extension."

Publish Date: Aug 28 '24
2 1

In an RoR project, bundle install was giving:

Installing nio4r 2.5.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
Enter fullscreen mode Exit fullscreen mode

The following commands fix this:

bundle config build.nio4r --with-cflags="-Wno-incompatible-pointer-types"
gem install nio4r -v 2.5.8 -- --with-cflags="-Wno-incompatible-pointer-types"
Enter fullscreen mode Exit fullscreen mode

Comments 1 total

Add comment