Skip to content

“Net::SSLeay and IO::Socket::SSL” Installation on Ubuntu

Category
Security
Covers
SSL/TLS, Ubuntu
Versions & support
About Ubuntu →

Recently, I installed the sendemail program on my Ubuntu server. When I tried to send an email over SMTP, I encountered an error that Net::SSLeay and IO::Socket::SSL Perl modules are missing on system.

To resolve this issue, I needed to install the Net::SSLeay and IO::Socket::SSL Perl modules on my Ubuntu 22.04 server. Here’s how you can do it:

  1. Update the package list:
    sudo apt update
    
  2. Install the required dependencies:
    sudo apt install libssl-dev
    
  3. Install Net::SSLeay and IO::Socket::SSL using CPAN:
    sudo apt install cpanminus
    sudo cpanm Net::SSLeay IO::Socket::SSL
    

Alternatively, you can use the system’s package manager to install these modules if available:

  1. Install libio-socket-ssl-perl (which includes both Net::SSLeay and IO::Socket::SSL):
    sudo apt install libio-socket-ssl-perl
    

After installing these modules, the sendemail program should be able to send emails over SMTP without encountering the SSL error.

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top