install perl module Net::SSLeay through cpan
On ubuntu, try
sudo apt-get install libnet-ssleay-perl
sudo apt-get install libcrypt-ssleay-perl
In Ubuntu 12.04
sudo apt-get install libssl-dev
This resolved the issue for me
On Centos, here's my solution:
sudo yum install perl perl-CPAN perl-Net-SSLeay perl-IO-Socket-SSL