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

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.

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.

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.

Cloudstack api error: BEGIN failed--compilation aborted at sign.pl line 12

Error message:
Can't locate XML/Twig.pm in #INC (#INC contains: /usr/local/lib64/perl5 /usr/loc al/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/li b64/perl5 /usr/share/perl5 .) at sign.pl line 12.
BEGIN failed--compilation aborted at sign.pl line 12.
The error is due to a missing Perl module.
See this answer:
What's the easiest way to install a missing Perl module?
If you have SELinux running you may have to restore the security contexts for the web folder.
For instance:
restorecon -Rv /var/www/html

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

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.