"gem install fcgi" fails on Solaris + gcc


I am trying to get Solaris + Apache (mod_fcgid) + FastCGI running. I
have got to the point where I need to install the "fcgi" module using
gem. However, the installation fails and having hunted around for some
answers, I think this may be a bug:

OK, I went into the Makefile and changed
INSTALL = ./install-sh -c
INSTALL = /usr/ucb/install -c
and then ran

make install

and it installed the fcgi.so library. Now I can run

ruby public/dispatch.fcgi

without errors.