Installing Rails on CentOS 5

I’m running CentOS 5.

So far I’ve downloaded tarballs, ruby-1.8.6.tar.gz and
rubygems-0.9.4.tgz. I seemed to have successfully installed ruby, and
maybe rubygems

I went into rubygems-0.9.4 directory, and typed:
ruby setup.rb

The first error I get is:
/usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:4:in
`require’: no such file to load – zlib (LoadError)

The file remote_fetcher.rb does exist in the path specified above. I
checked to see if the zlib library was installed, it is.

Suggestions?

I’m willing to use another method to install (yum?), if necessary.
=== Al

Try

yum install zlib zlib-devel

On Oct 11, 6:29 pm, William P. [email protected] wrote:

Suggestions?

I’m willing to use another method to install (yum?), if necessary.
=== Al

I’ve never used CentOS, but here’s a lsit of most commonly forgotten
libs to install:

http://groups.google.com/group/ruby-talk-google/browse_thread/thread/bb8c1fdb8837d4b2/

then the most common stumbling blocks after that are installing MySQL /
postgres , readline, SSL and rmagick (i think)

I’m not sure if these will help as I’ve never used centos before:

http://wiki.slicehost.com/doku.php?id=install_rails_on_centos_4.3_slice
http://opensoul.org/2006/8/2/rpms-for-deploying-rails-on-centos

The problem I’m stuck with continues to be the zlib error. I’ve
yum install zlib zlib-devel
successfully.

However, I still get the error:
/usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:4:in
`require’: no such file to load – zlib (LoadError)

Bummer.
=== Al

then the most common stumbling blocks after that are installing MySQL /
postgres , readline, SSL and rmagick (i think)

For rmagick, be sure to have the ghostscript-fonts.noarch yum package
installed first… at least if you’ve compiled imagemagick to use
freetype…

That one bit me today…

yum install ghostscript-fonts.noarch

Can you paste in the first 10 or so lines of

/usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:4