Help Installing Rails

I am new to Ruby and I am trying to install Rails on a SUN Solaris 10
machine. I have already installed Ruby and RubyGems and all worked okay.
I am trying to install Rails and I am getting the following message.

gem install rails --include-dependencies

/usr/local/lib/ruby/1.8/sparc-solaris2.10/digest/sha2.so: ld.so.1: ruby:
fatal: libgcc_s.so.1: open failed: No such file or directory -
/usr/local/lib/ruby/1.8/sparc-solaris2.10/digest/sha2.so (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:10
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:461:in require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:461 from /usr/local/lib/ruby/site_ruby/1.8/ubygems.rb:10:inrequire’
from /usr/local/lib/ruby/site_ruby/1.8/ubygems.rb:10

This file is there, so I am not sure why it can’t find the file.

Any help would be appreciated!!

Thanks, Brett