Skip to content

Instantly share code, notes, and snippets.

@FrendaWinter
Created August 7, 2024 10:07

Ruby devkit error

Error:

  • extconf.rb failed
  • conftest.c:5:10: fatal error: prism/extension.h: No such file or directory
  • conftest.c:5:10: fatal error: prism.h: No such file or directory
  • ERROR: Failed to build gem native extension.

On Windows, Ruby devkit

  • Should install MSYS2 and MINGW development toolchain

Or

pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils file gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-ucrt-x86_64-binutils mingw-w64-ucrt-x86_64-crt-git mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-gcc-libs mingw-w64-ucrt-x86_64-headers-git mingw-w64-ucrt-x86_64-libmangle-git mingw-w64-ucrt-x86_64-libwinpthread-git mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-tools-git mingw-w64-ucrt-x86_64-winpthreads-git pkgconf mingw-w64-ucrt-x86_64-pkgconf

If linux or Mac env: Probably missing Lib or header

Try to fine package that list above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment