To install find out where your kerberos libraries and header files are, then do the following:

ruby extconf.rb –with-kerberos-dir=/kerberos/install/path (/usr/local,/usr,etc..) make make install

If the compile fails make sure you have the libraries and krb5.h on your system, and that krb5.h is the MIT version, NOT Heimdal.