Page 1 of 1

Cannot install some cpan modules required for Vicidial email

PostPosted: Mon Dec 05, 2022 2:11 am
by bronson
Hello,

I am following the Vicidial Email User Manual doc found here http://vicidial.org/docs/Email_user_manual.txt

The first step is to install some perl modules for email to function:
INSTALL:

Perl CPAN modules required for email to function:
cpan
install LWP::UserAgent
install HTML::Entities
install HTML::Strip
install HTML::FormatText
install HTML::TreeBuilder
install Switch
install Time::Local
install MIME::Decoder
install Mail::POP3Client
install Mail::IMAPClient
install Mail::Message
install Mail::Box
install IO::Socket::SSL
install MIME::Base64
quit


I've been able to install most of the modules with no issues but some of the modules throw up an error. For example:

This module
Code: Select all
install IO::Socket::SSL
returns an error:

Code: Select all
cpan[3]> install IO::Socket::SSL
Running install for module 'IO::Socket::SSL'
Checksum for /root/.cpan/sources/authors/id/S/SU/SULLR/IO-Socket-SSL-2.077.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
Configuring S/SU/SULLR/IO-Socket-SSL-2.077.tar.gz with Makefile.PL
Should I do external tests?
These test will detect if there are network problems and fail soft,
so please disable them only if you definitely don't want to have any
network traffic to external sites.  [Y/n] y
Checking if your kit is complete...
Looks good
Warning: prerequisite Mozilla::CA 0 not found.
Generating a Unix-style Makefile
Writing Makefile for IO::Socket::SSL
Writing MYMETA.yml and MYMETA.json
  SULLR/IO-Socket-SSL-2.077.tar.gz
  /usr/bin/perl Makefile.PL -- OK
Running make for S/SU/SULLR/IO-Socket-SSL-2.077.tar.gz
---- Unsatisfied dependencies detected during ----
----     SULLR/IO-Socket-SSL-2.077.tar.gz     ----
    Mozilla::CA [requires]
Running install for module 'Mozilla::CA'
Checksum for /root/.cpan/sources/authors/id/H/HA/HAARG/Mozilla-CA-20221114.tar.gz ok
Configuring H/HA/HAARG/Mozilla-CA-20221114.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Mozilla::CA
Writing MYMETA.yml and MYMETA.json
  HAARG/Mozilla-CA-20221114.tar.gz
  /usr/bin/perl Makefile.PL -- OK
Running make for H/HA/HAARG/Mozilla-CA-20221114.tar.gz
Can't exec "make": No such file or directory at /usr/lib/perl5/vendor_perl/5.26.1/CPAN/Distribution.pm line 2351.
  HAARG/Mozilla-CA-20221114.tar.gz
  make -- NOT OK
  No such file or directory
  SULLR/IO-Socket-SSL-2.077.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/IO-Socket-SSL-2.077-5
  SULLR/IO-Socket-SSL-2.077.tar.gz
  Has already been prepared
Running make for S/SU/SULLR/IO-Socket-SSL-2.077.tar.gz
Warning: Prerequisite 'Mozilla::CA => 0' for 'SULLR/IO-Socket-SSL-2.077.tar.gz' failed when processing 'HAARG/Mozilla-CA-20221114.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Can't exec "make": No such file or directory at /usr/lib/perl5/vendor_perl/5.26.1/CPAN/Distribution.pm line 2351.
  SULLR/IO-Socket-SSL-2.077.tar.gz
  make -- NOT OK
  No such file or directory
Failed during this command:
 HAARG/Mozilla-CA-20221114.tar.gz             : make NO
 SULLR/IO-Socket-SSL-2.077.tar.gz             : make NO


Also, the following additional modules cannot be installed and are giving similar "No such file or directory" errors:
Code: Select all
install HTML::FormatText

Code: Select all
install MIME::Decoder

Code: Select all
install MIME::Base64


How can I install these Perl modules?

Re: Cannot install some cpan modules required for Vicidial e

PostPosted: Mon Dec 05, 2022 7:21 am
by mflorell
If you are using VICIbox, and VICIbox does not install things like 'make' and 'gcc', you can't build most perl modules through cpan. But, the 'yast' application should allow you to install the needed modules(if they aren't installed already). Just enter 'yast' on the Linux command-line, then go to Software -> Software Management -> Search Phrase, then enter in the perl module name(i.e. "FormatText"), then in the results section you'll highlight the module and press <space>. Then press F10 to accept and confirm the module to be installed, then F10 again to finish. After that you can do it again for any remaining modules that are needed.

Re: Cannot install some cpan modules required for Vicidial e

PostPosted: Tue Dec 06, 2022 3:33 am
by bronson
mflorell wrote:If you are using VICIbox, and VICIbox does not install things like 'make' and 'gcc', you can't build most perl modules through cpan. But, the 'yast' application should allow you to install the needed modules(if they aren't installed already). Just enter 'yast' on the Linux command-line, then go to Software -> Software Management -> Search Phrase, then enter in the perl module name(i.e. "FormatText"), then in the results section you'll highlight the module and press <space>. Then press F10 to accept and confirm the module to be installed, then F10 again to finish. After that you can do it again for any remaining modules that are needed.


Thanks, Matt! I was able to install the remaining perl modules via yast.