Gem install fcgi

[root@www dhaka]# gem install fcgi
Attempting local installation of 'fcgi'
Local gem file not found: fcgi*.gem
Attempting remote installation of 'fcgi'
Updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
can't find header files for ruby.
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.6.1<http://0.8.6.1>for
inspection.
ruby extconf.rb install fcgi\n

Results logged to
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/ext/gem_make.out<http://0.8.6.1/ext/gem_make.out>
[root@www dhaka]# rpm -qa | grep ruby
ruby-1.8.3-2.fc3
ruby-docs-1.8.3-2.fc3
ruby-libs-1.8.3-2.fc3
[root@www dhaka]#

At what location gem is looking for ruby header files?
Would anybody please show me right direction.

Thanks,

I have figured that Ineed ruby-devel package installed too..
thanks anyway

···

On 11/10/05, Mohammad Khan <beeplove@gmail.com> wrote:

[root@www dhaka]# gem install fcgi
Attempting local installation of 'fcgi'
Local gem file not found: fcgi*.gem
Attempting remote installation of 'fcgi'
Updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
can't find header files for ruby.
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.6.1 <http://0.8.6.1><http://0.8.6.1
>for
inspection.
ruby extconf.rb install fcgi\n

Results logged to
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/ext/gem_make.out<http://0.8.6.1/ext/gem_make.out&gt;
<http://0.8.6.1/ext/gem_make.out&gt;
[root@www dhaka]# rpm -qa | grep ruby
ruby-1.8.3-2.fc3
ruby-docs-1.8.3-2.fc3
ruby-libs-1.8.3-2.fc3
[root@www dhaka]#

At what location gem is looking for ruby header files?
Would anybody please show me right direction.

Thanks,

have you installed the fastcgi library itself - not the ruby extenstion - the
fastcgi lib?

-a

···

On Fri, 11 Nov 2005, Mohammad Khan wrote:

[root@www dhaka]# gem install fcgi
Attempting local installation of 'fcgi'
Local gem file not found: fcgi*.gem
Attempting remote installation of 'fcgi'
Updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
can't find header files for ruby.
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.6.1<http://0.8.6.1>for
inspection.
ruby extconf.rb install fcgi\n

Results logged to
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/ext/gem_make.out<http://0.8.6.1/ext/gem_make.out&gt;
[root@www dhaka]# rpm -qa | grep ruby
ruby-1.8.3-2.fc3
ruby-docs-1.8.3-2.fc3
ruby-libs-1.8.3-2.fc3
[root@www dhaka]#

At what location gem is looking for ruby header files?
Would anybody please show me right direction.

Thanks,

--

ara [dot] t [dot] howard [at] gmail [dot] com
all happiness comes from the desire for others to be happy. all misery
comes from the desire for oneself to be happy.
-- bodhicaryavatara

===============================================================================

I have installed ,
fcgi-2.4.0
mod_fastcgi-2.4.2
gem install fcgi

and followed the instrucion of
http://wiki.rubyonrails.com/rails/pages/FastCGI+on+unix+linux+bsd

and I am getting in my error.log

[Thu Nov 10 16:44:40 2005] [error] [client 66.237.x.y] FastCGI: comm with
(dynamic) server "/var/www/rails/project_1/public/dispatch.fcgi" aborted:
(first read) idle timeout (30 sec)
[Thu Nov 10 16:44:40 2005] [error] [client 66.237.x.y] FastCGI: incomplete
headers (0 bytes) received from server
"/var/www/rails/project_1/public/dispatch.fcgi"

···

On 11/10/05, Ara.T.Howard <ara.t.howard@noaa.gov> wrote:

On Fri, 11 Nov 2005, Mohammad Khan wrote:

> [root@www dhaka]# gem install fcgi
> Attempting local installation of 'fcgi'
> Local gem file not found: fcgi*.gem
> Attempting remote installation of 'fcgi'
> Updating Gem source index for: http://gems.rubyforge.org
> Building native extensions. This could take a while...
> can't find header files for ruby.
> 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.6.1 <http://0.8.6.1><http://0.8.6.1
>for
> inspection.
> ruby extconf.rb install fcgi\n
>
> Results logged to
> /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/ext/gem_make.out<http://0.8.6.1/ext/gem_make.out&gt;
<http://0.8.6.1/ext/gem_make.out&gt;
> [root@www dhaka]# rpm -qa | grep ruby
> ruby-1.8.3-2.fc3
> ruby-docs-1.8.3-2.fc3
> ruby-libs-1.8.3-2.fc3
> [root@www dhaka]#
>
> At what location gem is looking for ruby header files?
> Would anybody please show me right direction.
>
> Thanks,

have you installed the fastcgi library itself - not the ruby extenstion -
the
fastcgi lib?

-a
--

===============================================================================
> ara [dot] t [dot] howard [at] gmail [dot] com
> all happiness comes from the desire for others to be happy. all misery
> comes from the desire for oneself to be happy.
> -- bodhicaryavatara

===============================================================================

I have installed ,
fcgi-2.4.0
mod_fastcgi-2.4.2
gem install fcgi

and followed the instrucion of
http://wiki.rubyonrails.com/rails/pages/FastCGI+on+unix+linux+bsd

and I am getting in my error.log

[Thu Nov 10 16:44:40 2005] [error] [client 66.237.x.y] FastCGI: comm with
(dynamic) server "/var/www/rails/project_1/public/dispatch.fcgi" aborted:
(first read) idle timeout (30 sec)
[Thu Nov 10 16:44:40 2005] [error] [client 66.237.x.y] FastCGI: incomplete
headers (0 bytes) received from server
"/var/www/rails/project_1/public/dispatch.fcgi"

and what does dispatch.fcgi say when you run it from the command line as the
web user

   sudo www ./dispatch.fcgi < /dev/null

??

[root@www dhaka]# gem install fcgi
Attempting local installation of 'fcgi'
Local gem file not found: fcgi*.gem
Attempting remote installation of 'fcgi'
Updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
can't find header files for ruby.
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.6.1 <http://0.8.6.1><http://0.8.6.1
for
inspection.
ruby extconf.rb install fcgi\n

Results logged to
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/ext/gem_make.out<http://0.8.6.1/ext/gem_make.out&gt;

<http://0.8.6.1/ext/gem_make.out&gt;

[root@www dhaka]# rpm -qa | grep ruby
ruby-1.8.3-2.fc3
ruby-docs-1.8.3-2.fc3
ruby-libs-1.8.3-2.fc3
[root@www dhaka]#

At what location gem is looking for ruby header files?
Would anybody please show me right direction.

Thanks,

have you installed the fastcgi library itself - not the ruby extenstion -
the
fastcgi lib?

-a
--

===============================================================================
> ara [dot] t [dot] howard [at] gmail [dot] com
> all happiness comes from the desire for others to be happy. all misery
> comes from the desire for oneself to be happy.
> -- bodhicaryavatara

===============================================================================

-a

···

On Fri, 11 Nov 2005, Mohammad Khan wrote:

On 11/10/05, Ara.T.Howard <ara.t.howard@noaa.gov> wrote:

On Fri, 11 Nov 2005, Mohammad Khan wrote:

--

ara [dot] t [dot] howard [at] gmail [dot] com
all happiness comes from the desire for others to be happy. all misery
comes from the desire for oneself to be happy.
-- bodhicaryavatara

===============================================================================

> [Thu Nov 10 16:44:40 2005] [error] [client 66.237.x.y] FastCGI:
incomplete
> headers (0 bytes) received from server
> "/var/www/rails/project_1/public/dispatch.fcgi"

I think this means the location reference (she-bang) to ruby in the
dispatch.fcgi is incorrect. I would at least verify that it is pointing to
the right location.

-andy

···

--
Andrew Stone