gem install fcgi does not work

J

Joshua Muheim

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
 
B

Brian Candler

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.
 
S

Syed Arif

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top