`require_frameworks': no such file to load -- openssl

I'm getting this error on Ubuntu 9.04 when trying to run this simple Rails application. How to solve this error?

*** LOCAL GEMS ***

actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesupport (2.3.2) mysql (2.7) rails (2.3.2) rake (0.8.7)

Error :

=> Booting WEBrick => Rails 2.3.2 application starting on http://0.0.0.0:3000 /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:269:in `require_frameworks': no such file to load -- openssl (RuntimeError)   from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:134:in `process'   from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'   from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'   from /home/nuugii/workspace/demo/config/environment.rb:9   from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'   from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'   from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'   from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'   from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'   from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:84   from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'   from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'   from ./script/server:3

I'm getting this error on Ubuntu 9.04 when trying to run this simple Rails application. How to solve this error?

You need the ruby openssl bindings (if you installed ruby via apt then you can also install them via apt (called something like libopenssl- ruby), if you installed ruby from source then you need to install the openssl development package and then install the openssl-ruby bindings (part of the ruby source code)).

Fred

Fred