On a Debian system, if the Ruby complains about “LoadError: no such file to load — openssl” try to install this package libopenssl-ruby

$ sudo apt-get install libopenssl-ruby

Now test if the problem resolved:

$ irb -rubygems<br /> irb(main):001:0> require 'openssl'<br /> => true

Voilla, there is no more load error.

Credit: Ruby Forum