Wed, 27 Jun 2007
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


Great, that worked!
Ubuntu 6.06.1 LTS \n \l ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-linux]
thanks!
Great it worked for me too in 1.8.6!
yup…good solution…and I’m a linux newbie and had no issues. Thanks.
That saved me me some pain thanks. I had to add one more thing though:
checking for openssl/ssl.h… no === Checking for required stuff failed. === Makefile wasn’t created. Fix the errors above.
it wasn’t finding the right header files so I had to do sudo apt-get install libssl-dev see here http://www.ruby-forum.com/topic/90083