Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > gem install fcgi does not work

Reply
Thread Tools

gem install fcgi does not work

 
 
Joshua Muheim
Guest
Posts: n/a
 
      03-23-2007
Hi all

I'm trying to follow this guide:

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

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

 
Reply With Quote
 
 
 
 
Brian Candler
Guest
Posts: n/a
 
      03-24-2007
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/#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.

 
Reply With Quote
 
 
 
 
Syed Arif
Guest
Posts: n/a
 
      07-26-2007

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

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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fcgi or ruby-fcgi on Windows-Xp Javier Abaroa Ruby 2 04-19-2010 09:55 AM
FCGI with GEM install error Michael Whittaker Ruby 1 07-26-2007 01:11 PM
gem install fcgi Mohammad Khan Ruby 5 11-11-2005 02:41 PM
apache /fcgi: prevent starting of multiple fcgi processes benny Ruby 6 04-25-2005 08:12 PM
Gem install fcgi Tony Targonski Ruby 18 04-11-2005 07:19 PM



Advertisments