Skip to content

Error when installing fcgi gem

If you’re getting this error when installing fcgi:

Installing fcgi with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

you need to actually install FastCGI first. (`gem install fcgi` just installs the ruby bindings)

Normally, `brew install fcgi` would be ok, but it looks like the fcgi library has been taken down. Instead, download the source and built it yourself:

Download link:

Then run:

tar xzvf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure –prefix=/usr/local
sudo make
sudo make install

Great, now that fcgi is installed, go install the actual gem (via `bundle install` or otherwise)

Post a Comment

Your email is never published nor shared. Required fields are marked *