No compiler is necessary, as natto is not a C extension. It will run on CRuby (mri/yarv) and JRuby (jvm) equally well. It will also run on Windows, Unix/Linux, and OS X. natto provides a naturally Ruby-esque interface to MeCab.
MeCab, 0.996 or greater
FFI, 1.9.0 or greater