0

On a tutorial for installing SendEmail, I found instructions to install 2 prequisites, 2 perl modules

apt-get install 'perl(Net::SSLeay)' 'perl(IO::Socket::SSL)'

This syntax also resulted strange to my Debian 9

E: Unable to find package perl(Net::SSLeay)

E: Unable to find package perl(IO::Socket::SSL)

I tried using cpan, (I honestly do not know what is ... ) but it ended In some syntax errors

EDIT, more doubts

In this 'Ask Ubuntu' question, I see instructions to executed

apt-get install libnet-ssleay-perl libio-socket-ssl-perl

But in the tutorial I am following, instructions is to execute first

apt-get install libnet-ssleay-perl libio-socket-ssl-perl

and then

apt-get install 'perl(Net::SSLeay)' 'perl(IO::Socket::SSL)'
  • 1
    "On a tutorial for installing SendEmail..." what tutorial? – roaima Mar 18 at 10:51
  • 1
    I didn't linked it because it's in our intranet – realtebo Mar 18 at 14:50
2

How to install Perl modules on Debian 9?

1) through cpan:

cpan Module::Name

eg:

cpan IO::Socket::SSL
cpan Net::SSLeay

2) Through apt

Use apt-file to get the exact package name then install it. To install apt-file:

apt install apt-file
apt-file update

To get the package name:

apt-file search Module/Name

or :

apt-file search Module/Name | awk '{print $1}' | uniq |  tr -d \:

e,g:

apt-file search IO/Socket/SSL | awk '{print $1}' | uniq | tr -d \:

sample output:

libio-socket-ssl-perl

Installing libio-socket-ssl-perl package will install the IO::Socket::SSL perl module:

apt install libio-socket-ssl-perl
1

I add an answer but it's not a direct answer to my question.

Actually I was installing sendemail, and I discovered just now that debian 9 has an officiale package, so I do not answered my question, but resolved my problem simply doing

apt install sendemail

I'll leave open this question for a while because I think the question was interesting

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.