This content originally appeared on DEV Community and was authored by Saad Shakil
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.
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"
This content originally appeared on DEV Community and was authored by Saad Shakil
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
Saad Shakil | Sciencx (2024-08-28T15:25:58+00:00) nio4r “Failed to build gem native extension.”. Retrieved from https://www.scien.cx/2024/08/28/nio4r-failed-to-build-gem-native-extension/
" » nio4r “Failed to build gem native extension.”." Saad Shakil | Sciencx - Wednesday August 28, 2024, https://www.scien.cx/2024/08/28/nio4r-failed-to-build-gem-native-extension/
HARVARDSaad Shakil | Sciencx Wednesday August 28, 2024 » nio4r “Failed to build gem native extension.”., viewed ,<https://www.scien.cx/2024/08/28/nio4r-failed-to-build-gem-native-extension/>
VANCOUVERSaad Shakil | Sciencx - » nio4r “Failed to build gem native extension.”. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/28/nio4r-failed-to-build-gem-native-extension/
CHICAGO" » nio4r “Failed to build gem native extension.”." Saad Shakil | Sciencx - Accessed . https://www.scien.cx/2024/08/28/nio4r-failed-to-build-gem-native-extension/
IEEE" » nio4r “Failed to build gem native extension.”." Saad Shakil | Sciencx [Online]. Available: https://www.scien.cx/2024/08/28/nio4r-failed-to-build-gem-native-extension/. [Accessed: ]
rf:citation » nio4r “Failed to build gem native extension.” | Saad Shakil | Sciencx | https://www.scien.cx/2024/08/28/nio4r-failed-to-build-gem-native-extension/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.