Can't locate Mail/Sendmail.pm in @INC

book

Article ID: 224032

calendar_today

Updated On:

Products

CA Harvest Software Change Manager

Issue/Introduction

Trying to do a Linux Sendmail but getting PERL Sendmail package  

Can't locate Mail/Sendmail.pm in @INC (you may need to install the Mail::Sendmail module) (@INC contains: /usr/lib/perl5/site_perl/5.18.2/s390x-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/s390x-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/s390x-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .) at hsmtp.pl line 24.
BEGIN failed--compilation aborted at hsmtp.pl line 24.

 

Environment

Release : 13.0

Component : CA Harvest Software Change Manager

Resolution

1) Try Perl -MCPAN -e install Mail::Sendmail - not working

2) Create /opt/CPAN

3) Create /opt/CPAN/modules

4) Create /opt/CPAN/authors

5) Download https://www.cpan.org/modules/02packages.details.txt.gz

6) Download https://www.cpan.org/modules/03modlist.data.gz

7) Copy this in binary to /opt/CPAN/modules

8) Download https://www.cpan.org/authors/01mailrc.txt.gz

9) Download https://www.cpan.org/authors/02authors.txt.gz

10) Copy this in binary to /opt/CPAN/authors

11) Enter cpan

- o conf urllistfile://opt/CPAN/

- o conf commit - to save this to the file

- o conf urllist - to see it list is correct

- quit

 

12)Try perl -MCPAN -e install Mail::Sendmail - it install correctly now