Hi,
I just so happen to fix this on my box 2 minutes ago, after an upgrade from FC2
to FC3 :-).
Appearantly the fcgi.so that gets installed through the fcgi gem
doesn''t work
well on a fedora setup. I recommend a manual install as follows:
First uninstall the fcgi gem with ''gem uninstall fcgi''.
Then you''ll have to download ruby-fcgi:
http://sugi.nemui.org/pub/ruby/fcgi/ruby-fcgi-0.8.6.tar.gz
and install it manually (see the README file included in the package).
Make sure that you have
require ''fcgi''
instead of
require ''rubygems''
require_gem ''fcgi''
in your dispatch.fcgi
Oh and also, if you compiled fcgi-2.4.0 manually, it might have been installed
in /usr/local/lib. Make sure you have /usr/local/lib in your ld.so.conf (reload
with ldconfig -v afterwards) so that the library can be found.
Hope this helps,
Best regards,
Bas
Jim Van Fleet wrote:> I''ve got a brush-up for the Rails on Fedora entry ready, but
there''s a
> problem with the FCGI gem. (CGI works as expectedly.)
>
> I can help in that I have an FC4 install, but my Linux admin skills are
> growing roughly in proportion to my Rails skills: slowly but surely. If
> someone can let me know where I should be poking around, or who to talk
> to, that would be great.
>
> Rails is dying under fcgi with an Uninitialized Contstant error on
> ''FCGI'' which I take to mean that the gem is not
installing correctly.
> Find the output of the gem install command below.
>
> Cheers,
>
> Jim
>
> [bigfleet@localhost ~]$ sudo 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...
> fcgi.c: In function âfcgi_s_acceptâ:
> fcgi.c:85: warning: statement with no effect
> ruby extconf.rb install fcgi
> checking for fcgiapp.h... yes
> checking for FCGX_Accept() in -lfcgi... yes
> creating Makefile
>
> make
> i386-redhat-linux-gcc -fPIC -O0 -g -pipe -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -m32 -march=i386 -mtune=pentium4
> -fasynchronous-unwind-tables -Wall -fPIC -I.
> -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I.
> -DHAVE_FCGIAPP_H -c fcgi.c
> i386-redhat-linux-gcc -shared -L"/usr/lib" -o fcgi.so fcgi.o
-lruby
> -lfcgi -ldl -lcrypt -lm -lc
>
> make install
> install -c -p -m 0755 fcgi.so /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6/.
> Successfully installed fcgi-0.8.6
> Installing RDoc documentation for fcgi-0.8.6...
> No definition for fcgi_s_accept
> No definition for fcgi_s_each
> No definition for fcgi_s_each
> No definition for fcgi_s_iscgi
> No definition for fcgi_in
> No definition for fcgi_out
> No definition for fcgi_err
> No definition for fcgi_env
> No definition for fcgi_finish
> No definition for fcgi_stream_putc
> No definition for fcgi_stream_write
> No definition for fcgi_stream_print
> No definition for fcgi_stream_printf
> No definition for fcgi_stream_puts
> No definition for fcgi_stream_addstr
> No definition for fcgi_stream_flush
> No definition for fcgi_stream_getc
> No definition for fcgi_stream_ungetc
> No definition for fcgi_stream_gets
> No definition for fcgi_stream_read
> No definition for fcgi_stream_eof
> No definition for fcgi_stream_eof
> No definition for fcgi_stream_close
> No definition for fcgi_stream_closed
> No definition for fcgi_stream_binmode
> No definition for fcgi_stream_isatty
> No definition for fcgi_stream_isatty
> No definition for fcgi_stream_sync
> No definition for fcgi_stream_setsync
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails