Faild setup rails 2.0

#gem i rails
Updating metadata for 9 gems from http://gems.rubyforge.org

complete
ERROR: While executing gem … (Gem::Exception)
SSL is not installed on this system

/ruby/ext/openssl# ruby extconf.rb
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff… ===
checking for t_open() in -lnsl… no
checking for socket() in -lsocket… no
checking for assert.h… yes
=== Checking for required stuff… ===
checking for openssl/ssl.h… no
=== Checking for required stuff failed. ===
Makefile wasn’t created. Fix the errors above.

ubuntu 7.04

sudo apt-get install libopenssl-ruby