Skip to content

fcgi gem on Debian

If you are getting errors on Debian while trying to install the fcig ruby bindings, then I may have the solution for you (well it isn’t my solution, I got it from here).

The error might look something like this:

ERROR: While executing gem … (RuntimeError)
ERROR: Failed to build gem native extension.

Do the following to get everything to work:

> wget http://www.fastcgi.com/dist/fcgi.tar.gz
> tar -zxvf fcgi-2.4.0.tar.gz
> ./configure
> make
> make install
> gem install fcgi

The errors should be gone and if you do a ‘gem list –local’, fcgi should be in the list of gems installed.