The solution for this error was (and is for all such errors) to have a look at the mkmf.log
file (for me, /cygdrive/d/d/Documents/.gem/ruby/extensions/x86_64-cygwin/ffi-1.9.8/mkmf.log
) and see which libraries are missing.
In my case, -lcrypt
and -lgmp
were failing, so I had to "cygwin-setup" libcrypt-devel
and libgmp-devel
.