Can't locate Email/Sender/Transport/SMTP/TLS.pm in #INC - perl

I am installing FreeSide on Ubuntu 10.4, everything prior to the install goes fine, but once I get to the actual install, I get these errors:
Can't locate Email/Sender/Transport/SMTP/TLS.pm in #INC
(#INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at /usr/local/share/perl/5.10.1/FS/Misc.pm line 100.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/Misc.pm line 100.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/cust_bill.pm line 16.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/cust_bill.pm line 16.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/cust_main/Billing.pm line 10.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/cust_main/Billing.pm line 10.
Compilation failed in require at (eval 19) line 3.
...propagated at /usr/share/perl/5.10/base.pm line 93.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/cust_main.pm line 10.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/agent.pm line 8.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/agent.pm line 8.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/access_groupagent.pm line 6.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/access_groupagent.pm line 6.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/access_group.pm line 7.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/access_group.pm line 7.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/access_usergroup.pm line 7.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/access_usergroup.pm line 7.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/access_user.pm line 10.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/access_user.pm line 10.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/otaker_Mixin.pm line 6.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/otaker_Mixin.pm line 6.
Compilation failed in require at (eval 15) line 3.
...propagated at /usr/share/perl/5.10/base.pm line 93.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/cust_pkg.pm line 5.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/cust_svc.pm line 9.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/cust_svc.pm line 9.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/queue.pm line 14.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/queue.pm line 14.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/part_export.pm line 14.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/part_export.pm line 14.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/part_svc.pm line 9.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/part_svc.pm line 9.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/pkg_svc.pm line 7.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/pkg_svc.pm line 7.
Compilation failed in require at /usr/local/share/perl/5.10.1/FS/part_pkg.pm line 11.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/FS/part_pkg.pm line 11.
Compilation failed in require at /usr/local/bin/freeside-setup line 10.
BEGIN failed--compilation aborted at /usr/local/bin/freeside-setup line 10.
I've tried installing Email::Sender::Transport::SMTP::TLS using cpan, but I can't tell if it worked.
This program is mostly written in Perl, which I know virtually nothing about.

No, the CPAN installation did not work. Provide more details, that is to say, the complete log of the installation attempt, if you decide to continue that way.
Otherwise just install the Ubuntu package libemail-sender-transport-smtp-tls-perl.

Related

Getting error while executing makeinfo on cygwin

While executing makeinfo on cygwin I am getting the following errors. I am using the perl version 5.32.1
23:16 Harshal:~> makeinfo
Can't locate if.pm in #INC (you may need to install the if module) (#INC contains: /usr/lib/texinfo /usr/share/texinfo/lib/Text-Unidecode/lib /usr/share/texinfo/lib/Unicode-EastAsianWidth/lib /usr/share/texinfo/lib/libintl-perl/lib /usr/share/texinfo /usr/share/texinfo /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads /usr/local/share/perl5/site_perl/5.32 /usr/lib/perl5/vendor_perl/5.32/x86_64-cygwin-threads /usr/share/perl5/vendor_perl/5.32 /usr/lib/perl5/5.32/x86_64-cygwin-threads /usr/share/perl5/5.32) at /usr/share/texinfo/Texinfo/Structuring.pm line 27.
BEGIN failed--compilation aborted at /usr/share/texinfo/Texinfo/Structuring.pm line 27.
Compilation failed in require at /usr/share/texinfo/Texinfo/Convert/Converter.pm line 32.
BEGIN failed--compilation aborted at /usr/share/texinfo/Texinfo/Convert/Converter.pm line 32.
Compilation failed in require at /usr/bin/makeinfo line 99.
BEGIN failed--compilation aborted at /usr/bin/makeinfo line 99.
If someone can provide some pointer on how to resolve this issue would be helpful
I tried updating the perl version. I tried commetting out the code on line num 27 in structuring.pm didn;t workout. I am not from software background but i need the above thing for some RISCV based toolchain update.
Any help woudl be really appreciated .
Something's wrong with your system. This is a file included in the perl-5.32.1-2 package. It should be found at
/usr/share/perl5/5.32/if.pm
Try reinstalling the perl package. If the file isn't missing, something's wrong with the permissions.

perl DBI installation fails alpine

I am trying to install DBI (after failing DBD) on alpine 3.12 and keep getting the errors below. I tried the most recent version of DBI and 1.628 which seems to be released right after Perl v5.16.3 (which I need to use). I updated Test::Simple, Test::More and Pod::Simple.
Errorlog (shortend):
cpanm https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.628.tar.gz
cpanm (App::cpanminus) 1.7044 on perl 5.016003 built for x86_64-linux-thread-multi
Work directory is /root/.cpanm/work/1598444706.8
You have make /usr/bin/make
You have /usr/bin/wget
You have /usr/bin/tar: tar (GNU tar) 1.32
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
--> Working on https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.628.tar.gz
Fetching https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.628.tar.gz
-> OK
Unpacking DBI-1.628.tar.gz
Entering DBI-1.628
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (6.63_02)
Configuring DBI-1.628
Running Makefile.PL
Your perl was compiled with gcc (version 9.3.0), okay.
Creating test wrappers for DBD::Gofer:
t/zvg_01basics.t
t/zvg_02dbidrv.t
[...]
t/zvxgnp_85gofer.t
Checking if your kit is complete...
Looks good
I see you're using perl 5.016003 on x86_64-linux-thread-multi, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.
Writing Makefile for DBI
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 6.48 ... Yes (6.63_02)
Checking if you have Test::Simple 0.90 ... Yes (0.98)
Building and testing DBI-1.628
/opt/perl/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
[...]
# Failed test 'use DBI::DBD::SqlEngine;'
# at t/48dbi_dbd_sqlengine.t line 18.
# Tried to use 'DBI::DBD::SqlEngine'.
# Error: Bareword "Errno::ENOENT" not allowed while "strict subs" in use at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/SQL/Nano.pm line 301.
# Compilation failed in require at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/DBD/SqlEngine.pm line 27.
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
# Failed test 'use DBD::File;'
# at t/48dbi_dbd_sqlengine.t line 19.
# Tried to use 'DBD::File'.
# Error: Attempt to reload DBI/DBD/SqlEngine.pm aborted.
# Compilation failed in require at (eval 11) line 2.
# ...propagated at /opt/perl/lib/5.16.3/base.pm line 84.
# BEGIN failed--compilation aborted at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBD/File.pm line 34.
# Compilation failed in require at (eval 9) line 2.
# BEGIN failed--compilation aborted at (eval 9) line 2.
install_driver(File) failed: Attempt to reload DBD/File.pm aborted.
Compilation failed in require at (eval 12) line 3.
at t/48dbi_dbd_sqlengine.t line 22.
# Tests were run but no plan was declared and done_testing() was not seen.
t/48dbi_dbd_sqlengine.t .........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/3 subtests
# Failed test 'use DBD::File;'
# at t/49dbd_file.t line 18.
# Tried to use 'DBD::File'.
# Error: Bareword "Errno::ENOENT" not allowed while "strict subs" in use at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/SQL/Nano.pm line 301.
# Compilation failed in require at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/DBD/SqlEngine.pm line 27.
# Compilation failed in require at (eval 9) line 2.
# ...propagated at /opt/perl/lib/5.16.3/base.pm line 84.
# BEGIN failed--compilation aborted at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBD/File.pm line 34.
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
install_driver(File) failed: Attempt to reload DBD/File.pm aborted.
Compilation failed in require at (eval 11) line 3.
at t/49dbd_file.t line 30.
# Tests were run but no plan was declared and done_testing() was not seen.
t/49dbd_file.t ..................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/2 subtests
Bareword "Errno::ENOENT" not allowed while "strict subs" in use at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/SQL/Nano.pm line 301.
Compilation failed in require at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/DBD/SqlEngine.pm line 27.
Compilation failed in require at (eval 9) line 2.
...propagated at /opt/perl/lib/5.16.3/base.pm line 84.
BEGIN failed--compilation aborted at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBD/File.pm line 34.
Compilation failed in require at (eval 8) line 2.
...propagated at /opt/perl/lib/5.16.3/base.pm line 84.
BEGIN failed--compilation aborted at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBD/DBM.pm line 25.
Compilation failed in require at t/50dbm_simple.t line 7.
t/50dbm_simple.t ................
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
install_driver(DBM) failed: Bareword "Errno::ENOENT" not allowed while "strict subs" in use at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/SQL/Nano.pm line 301.
Thanks for any insights.

Installing koha by cpan, Can't locate XML/LibXSLT.pm

The following fatal error has occurred:
Can't locate XML/LibXSLT.pm in #INC (#INC contains:
/home/koha/koha/koha /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl .) at /home/koha/koha/koha/C4/XSLT.pm line
28. BEGIN failed--compilation aborted at /home/koha/koha/koha/C4/XSLT.pm line 28. Compilation failed in require
at /home/koha/koha/koha/C4/Search.pm line 28. BEGIN
failed--compilation aborted at /home/koha/koha/koha/C4/Search.pm line
28. Compilation failed in require at /home/koha/koha/koha/C4/Heading.pm line 25. BEGIN failed--compilation
aborted at /home/koha/koha/koha/C4/Heading.pm line 25. Compilation
failed in require at /home/koha/koha/koha/C4/Biblio.pm line 36.
Compilation failed in require at /home/koha/koha/koha/C4/Reserves.pm
line 26. BEGIN failed--compilation aborted at
/home/koha/koha/koha/C4/Reserves.pm line 26. Compilation failed in
require at /home/koha/koha/koha/C4/Circulation.pm line 25. BEGIN
failed--compilation aborted at /home/koha/koha/koha/C4/Circulation.pm
line 25. Compilation failed in require at
/home/koha/koha/koha/C4/Overdues.pm line 25. BEGIN failed--compilation
aborted at /home/koha/koha/koha/C4``/Overdues.pm line 25. Compilation
failed in require at /home/koha/koha/koha/C4/Members.pm line 27. BEGIN
failed--compilation aborted at /home/koha/koha/koha/C4/Members.pm line
27. Compilation failed in require at /home/koha/koha/koha/C4/Auth.pm line 27. BEGIN failed--compilation aborted at
/home/koha/koha/koha/C4/Auth.pm line 27. Compilation failed in require
at /home/koha/koha/koha/opac/opac-main.pl line 22. BEGIN
failed--compilation aborted at /home/koha/koha/koha/opac/opac-main.pl
line 22.
You need to install the XML::LibXSLT module.
Install it by:
$ cpan XML::LibXSLT
Also check: Installing perl dependency automatically in perl
Have a look at Bundle::KohaSupport - A bundle of the required Perl modules for Koha Intergrated Library System.

How to recover from interrupted CPAN module installation?

My computer crashed during a perl module installation using cpanm (I guess while installing Carp as a dependency of Moose). Now, when I try to use the modules I want to use, I get the following error:
user#linux:~$ ./script_using_moose.pl
Carp.pm did not return a true value at /usr/share/perl/5.14/diagnostics.pm line 185.
BEGIN failed--compilation aborted at /usr/share/perl/5.14/diagnostics.pm line 185.
Compilation failed in require at ./script_using_moose.pl line 5.
BEGIN failed--compilation aborted at ./script_using_moose.pl line 5.
user#linux:~$
And if I try to (re)install the package (using cpanm --reinstall or cpanm force) I get this other (similar) error:
user#linux:~$ sudo cpanm --force Moose
Carp.pm did not return a true value at /usr/local/share/perl/5.14.2/Parse/CPAN/Meta.pm line 6.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/Parse/CPAN/Meta.pm line 6.
Compilation failed in require at /loader/0x1692090/App/cpanminus/script.pm line 11.
BEGIN failed--compilation aborted at /loader/0x1692090/App/cpanminus/script.pm line 11.
Compilation failed in require at /usr/bin/cpanm line 2029.
BEGIN failed--compilation aborted at /usr/bin/cpanm line 2029.
user#linux:~$
How can I resume installation or reconfigure/reinstall the incomplete module?
For some reason, a couple of files were created but not written to, or truncated. These can be easily identified in the full installation log as those modules with an undef version number:
Checking dependencies from MYMETA.json ...
...
Checking if you have Task::Weaken 0 ... Yes (undef)
...
Checking if you have Devel::GlobalDestruction 0 ... Yes (undef)
Reinstalling the modules Task::Weaken, and Devel::GlobalDestruction should do the trick.

./autogen error while building linphone for windows

I have downloaded the Linphone opensource and build using MinGW. I have followed the steps given by the README.mingw. When I use the command "./autogen.sh" to automake the belle-sip, I got the following error.I guess there might be some problems related perl module, and I search the solutions on the Internet. However, still cannot solve the problem.
Chi#Nimal_PC /c/source/belle-sip
$ ./autogen.sh
Generating build scripts in belle-sip...
+ libtoolize --copy --force
libtoolize: $pkgltdldir is not a directory: `/mingw/share/libtool'
+ aclocal -I /share/aclocal
Can't locate Automake/Config.pm in #INC (#INC contains: /mingw/share/automake-1.11 /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys/usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/msys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at /c/MinGW/bin/aclocal-1.11 line 37.
BEGIN failed--compilation aborted at /c/MinGW/bin/aclocal-1.11 line 37.
+ autoheader
Can't locate Autom4te/ChannelDefs.pm in #INC (#INC contains: /mingw/share/autoconf /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys/usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/msys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at /c/MinGW/bin/autoheader-2.68 line 42.
BEGIN failed--compilation aborted at /c/MinGW/bin/autoheader-2.68 line 42.
+ automake --force-missing --add-missing --copy
Can't locate Automake/Struct.pm in #INC (#INC contains: /mingw/share/automake-1.11 /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys/usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/msys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at /c/MinGW/bin/automake-1.11 line 47.
BEGIN failed--compilation aborted at /c/MinGW/bin/automake-1.11 line 47.
+ autoconf
/c/MinGW/bin/autoconf-2.68: line 501: /mingw/bin/autom4te-2.68: No such file or directory
/c/MinGW/bin/autoconf-2.68: line 501: exec: /mingw/bin/autom4te-2.68: cannot execute: No such file or directory
You are missing automake dependency that you can install from MinGW Installation Manager. From that install automake.