I have a Ruby sinatra application am using Pony to send emails. It works fine from my windows box. But after deploying to RHEL 5.3 server I get following errors.

NameError - uninitialized constant Net::SMTP::OpenSSL:
  /usr/local/lib/ruby/1.9.1/net/smtp.rb:197:in `default_ssl_context'
  /usr/local/lib/ruby/1.9.1/net/smtp.rb:351:in `enable_starttls_auto'

I am using ruby 1.9.2.

Please help to get fix this error. Please let me know if any additional details that I should add

1

There are 1 best solutions below

1
On

Maybe

yum install libssl-devel libopenssl-ruby openssl libssl