Problem with openssl with Ruby 1.8.6 on Ubuntu Fesity 7.04

Just fixed an issue with openssl not working correctly with Ruby 1.8.6 (installed from source) on Ubuntu Feisty (server).

$ cat /etc/issue
Ubuntu 7.04

After deploying a new Rails application I restarted mongrel but all requests were returning errors (500); the production.log indicated the following issue:

no such file to load -- openssl

To rectify this I had to do the following.

$ sudo apt-get install libopenssl-ruby
$ sudo apt-get install libssl0.9.8

$ cd ~/src/ruby-1.8.6/ext/openssl
$ ruby extconf.rb
$ make
$ sudo make install

To test that openssl is working correctly use irb:

irb(main):001:0> require 'openssl'
=> true

References

  • http://linuxbrit.co.uk/rbot/ticket/69
  • http://www.ruby-forum.com/topic/90083

About this entry