[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gem install fcgi does not work

Joshua Muheim

3/23/2007 10:44:00 AM

Hi all

I'm trying to follow this guide:

http://wiki.rubyonrails.org/rails/pages/R...

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

--
Posted via http://www.ruby-....

2 Answers

Brian Candler

3/24/2007 6:03:00 AM

0

On Fri, Mar 23, 2007 at 07:43:37PM +0900, Joshua Muheim wrote:
> 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

It's trying to link against the C fastcgi development kit. You can download
this from http://www.fastcgi.com/... 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.

Syed Arif

7/26/2007 1:10:00 PM

0


This might help u.....
gem install fcgi -- --with-fcgi-include=FCGIINSTALLPATH/include
â??with-fcgi-lib=FCGIINSTALLPATH/lib

--
Posted via http://www.ruby-....