# FCGI with GEM install error

**URL:** <https://www.ruby-forum.com/t/fcgi-with-gem-install-error/102281>\
**Category:** Ruby\
**Created:** [August 14, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/fcgi-with-gem-install-error/102281 "2006-08-14T17:45:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [August 14, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/fcgi-with-gem-install-error/102281/1 "2006-08-14T17:45:04Z")

</div>

Hello folks!

After successfully installing Ruby + Rails on windows to develop, I  
wanted to install Ruby with FCGI (for apache2), MySQL and Rails on a  
SuSE Linux 10.0 (x64) server for production use.

RAILS installed fine using “gem install rails”, so did the mysql  
extension.

But when I try to install the FastCGI-gem (“fcgi”) I get an error, I  
don’t understand (btw: I have ruby-devel installed).

==OUTPUT==  
funky-server:~ # 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/lib64/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/lib64/ruby/gems/1.8/gems/fcgi-0.8.7/ext/fcgi/gem\_make.out  
==END OUTPUT==

==CONTENT OF gem\_make.out==  
ruby extconf.rb install fcgi  
checking for fcgiapp.h… no  
checking for fastcgi/fcgiapp.h… no  
==END CONTENT OF gem\_make.out==

Thanks for your help,  
Michael.

---

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [July 26, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/fcgi-with-gem-install-error/102281/2 "2007-07-26T15:11:53Z")

</div>

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