does gem fcgi require fcgi to be installed?

Does anyone know if the gem fcgi needs fcgi to be installed on my
machine? I'm trying to install the gem fcgi and I'm getting the
following message:

-bash-3.00# gem install fcgi
Updating metadata for 9 gems from
Building native extensions. This could take a while...
ERROR: Error installing fcgi:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install fcgi
checking for fcgiapp.h... no
checking for fastcgi/fcgiapp.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:

Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/
fcgi-0.8.7 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/fcgi-0.8.7/ext/fcgi/

I'd like to add that the mkmf.log has the following:
have_header: checking for fastcgi/fcgiapp.h... -------------------- no

"gcc -E -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -O2 -g -Wall -fPIC
conftest.c -o conftest.i"
conftest.c:1:29: fastcgi/fcgiapp.h: No such file or directory
checked program was:
/* begin */
1: #include <fastcgi/fcgiapp.h>
/* end */