# Gem install fcgi does not work

**URL:** <https://www.ruby-forum.com/t/gem-install-fcgi-does-not-work/89858>\
**Category:** Ruby\
**Created:** [March 23, 2007, 11:43am UTC](https://www.ruby-forum.com/t/gem-install-fcgi-does-not-work/89858 "2007-03-23T11:43:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [March 23, 2007, 11:43am UTC](https://www.ruby-forum.com/t/gem-install-fcgi-does-not-work/89858/1 "2007-03-23T11:43:35Z")

</div>

Hi all

I’m trying to follow this guide:

[http://wiki.rubyonrails.org/rails/pages/RailsOnSUSE](http://wiki.rubyonrails.org/rails/pages/RailsOnSUSE)

And I’m having problem with installing fcgi using gems (I’m logged in as  
root):

koelsch:/home/josh # gem install fcgi  
Attempting local installation of ‘fcgi’  
Local gem file not found: fcgi\*.gem  
Attempting remote installation of ‘fcgi’  
Building native extensions. This could take a while…  
ERROR: While executing gem … (RuntimeError)  
ERROR: Failed to build gem native extension.  
Gem files will remain installed in  
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7 for inspection.  
ruby extconf.rb install fcgi\nchecking for fcgiapp.h… no  
checking for fastcgi/fcgiapp.h… no

Results logged to  
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/ext/fcgi/gem\_make.out

In addition I wasn’t able yet to install apache2-mod\_fastcgi, but I  
don’t think this is responsible for this behavior?

Thanks for help.  
Josh

---

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [March 24, 2007, 7:04am UTC](https://www.ruby-forum.com/t/gem-install-fcgi-does-not-work/89858/2 "2007-03-24T07:04:26Z")

</div>

On Fri, Mar 23, 2007 at 07:43:37PM +0900, Joshua M. wrote:

> Gem files will remain installed in  
> /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7 for inspection.  
> ruby extconf.rb install fcgi\nchecking for fcgiapp.h… no  
> checking for fastcgi/fcgiapp.h… no

It’s trying to link against the C fastcgi development kit. You can  
download  
this from [http://www.fastcgi.com/#TheDevKit](http://www.fastcgi.com/#TheDevKit) and build it (or else your  
base  
system may have this available as a pre-built binary)

I believe the ruby fcgi package does include a pure-ruby implementation,  
which it’s supposed to use as a fallback, but I suspect the gem  
packaging  
hasn’t allowed for this.

> In addition I wasn’t able yet to install apache2-mod\_fastcgi, but I  
> don’t think this is responsible for this behavior?

No it’s unrelated. I recommend you use apache2-mod\_fcgid though anyway;  
this  
is a drop-in replacement for mod\_fastcgi which is actually being  
maintained.

Brian.

---

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [July 26, 2007, 3:09pm UTC](https://www.ruby-forum.com/t/gem-install-fcgi-does-not-work/89858/3 "2007-07-26T15:09:45Z")

</div>

This might help u…  
gem install fcgi – --with-fcgi-include=FCGIINSTALLPATH/include  
â€“with-fcgi-lib=FCGIINSTALLPATH/lib
