installing ruby on rails

Running Centos 5.5 x86_64 virtualmin pro 3.80 Webmin 1.520 tried to install script for ruby on rails and get this error message

Updating Ruby Gems to latest version from 0.9.2 .. .. Gems update failed : ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 302 Updating RubyGems...



I updated rubygems to ver 1.3.1 manually, and then tried the install but it failed installing Ruby Gem fcgi with this message Installing Ruby Gem fcgi .. .. Gem install failed : INFO: gem install -y is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list Building native extensions. This could take a while... ERROR: Error installing fcgi: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb install fcgi --include-dependencies -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql checking for fcgiapp.h... no checking for fastcgi/fcgiapp.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby --with-fcgi-dir --without-fcgi-dir --with-fcgi-include --without-fcgi-include=${fcgi-dir}/include --with-fcgi-lib --without-fcgi-lib=${fcgi-dir}/lib Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.8 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.8/ext/fcgi/gem_make.out

I saw in a previous response that you needed to load fcgi-devel but when I try it says that module does not exist.

On CentOS, you need to run yum install fcgi-devel

I tried that but it is not in the repository and if I go to a third party I have to load fcgi before I can load fcgi-devel which I tried on one of my lab servers and it still doesn't work it gives the same message.

Looks like that package is actually in the EPEL repository. You can enable it and install with the commands :

rpm -Uvh ""
yum install fcgi-devel