install appeared to succeed, but LWP::UserAgent cannot be loaded.

I am installing Cloudmin Professional using the provided .sh script. Fresh install Ubuntu 16.04 only ssh server and webmin installed. Output below.

 install appeared to succeed, but LWP::UserAgent cannot be loaded. Perl says :
Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgen                                             t module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1                                              /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/per                                             l5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_                                             perl /usr/lib/x86_64-linux-gnu/perl-base .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
See the log file /tmp/cloudmin-perl-install.out for details

I have tried to install LWP and still get error.

Status: 
Active
Virtualmin version: 
Late
Webmin version: 
1.970

Comments

Test Summary Report

t/base/ua.t (Wstat: 512 Tests: 51 Failed: 2) Failed tests: 20-21 Non-zero exit status: 2 t/local/autoload-get.t (Wstat: 256 Tests: 4 Failed: 1) Failed test: 4 Non-zero exit status: 1 t/local/autoload.t (Wstat: 256 Tests: 4 Failed: 1) Failed test: 4 Non-zero exit status: 1 t/local/http.t (Wstat: 768 Tests: 130 Failed: 3) Failed tests: 37-38, 129 Non-zero exit status: 3 Files=19, Tests=269, 16 wallclock secs ( 0.04 usr 0.02 sys + 1.56 cusr 0.05 csys = 1.67 CPU) Result: FAIL Failed 4/19 test programs. 7/269 subtests failed. Makefile:1041: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 OALDERS/libwww-perl-6.52.tar.gz 2 dependencies missing (HTML::HeadParser,HTML::Entities); additionally test harness failed /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports OALDERS/libwww-perl-6.52.tar.gz Running install for module 'Test::LeakTrace' Checksum for /root/.cpan/sources/authors/id/L/LE/LEEJO/Test-LeakTrace-0.17.tar.gz ok Configuring L/LE/LEEJO/Test-LeakTrace-0.17.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Test::LeakTrace Writing MYMETA.yml and MYMETA.json LEEJO/Test-LeakTrace-0.17.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK Running make for L/LE/LEEJO/Test-LeakTrace-0.17.tar.gz cp lib/Test/LeakTrace.pm blib/lib/Test/LeakTrace.pm cp lib/Test/LeakTrace/Script.pm blib/lib/Test/LeakTrace/Script.pm cp lib/Test/LeakTrace/JA.pod blib/lib/Test/LeakTrace/JA.pod Running Mkbootstrap for Test::LeakTrace () chmod 644 "LeakTrace.bs" "/usr/bin/perl" "/usr/share/perl/5.22/ExtUtils/xsubpp" -typemap "/usr/share/perl/5.22/ExtUtils/typemap" LeakTrace.xs > LeakTrace.xsc && mv LeakTrace.xsc LeakTrace.c x86_64-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.17\" -DXS_VERSION=\"0.17\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE" LeakTrace.c /bin/sh: 1: x86_64-linux-gnu-gcc: not found Makefile:344: recipe for target 'LeakTrace.o' failed make: *** [LeakTrace.o] Error 127 LEEJO/Test-LeakTrace-0.17.tar.gz /usr/bin/make -- NOT OK Running install for module 'Test::LeakTrace' LEEJO/Test-LeakTrace-0.17.tar.gz Has already been unwrapped into directory /root/.cpan/build/Test-LeakTrace-0.17-fm19rN LEEJO/Test-LeakTrace-0.17.tar.gz Has already been prepared LEEJO/Test-LeakTrace-0.17.tar.gz Could not make: Unknown error

Status: Needs review ยป Active
Ilia's picture
Submitted by Ilia on Tue, 02/02/2021 - 03:35

Hi,

Try installing it via apt:

apt-get install liblwp-useragent-determined-perl

@Ilia I tried installing via apt. Still get same output

Ilia's picture
Submitted by Ilia on Tue, 02/02/2021 - 11:19

What is the output of:

perl -e "use LWP::UserAgent"

Did the previous command install needed LWP::UserAgent package?

Yes previous command installed. No output from perl -e "use LWP::UserAgent"

Ilia's picture
Submitted by Ilia on Tue, 02/02/2021 - 16:43

As there is no output, that means LWP::UserAgent can be loaded - all is fine.

Have you tried running Cloudmin install over again?

install appeared to succeed, but Crypt::SSLeay cannot be loaded. Perl says : Can't locate Crypt/SSLeay.pm in @INC (you may need to install the Crypt::SSLeay module)

Ilia's picture
Submitted by Ilia on Tue, 02/02/2021 - 17:19

Perhaps running the following command would help:

apt-get install libcrypt-ssleay-perl

install appeared to succeed, but XML::Simple cannot be loaded. Perl says : Can't locate XML/Simple.pm in @INC

Ilia's picture
Submitted by Ilia on Tue, 02/02/2021 - 17:38

Any clue how to install it based on the example from my previous comment?

install appeared to succeed, but IO::Tty cannot be loaded. Perl says : Can't locate IO/Tty.pm

I got the XML SImple new error. Dont know command other than

apt-get install

Ilia's picture
Submitted by Ilia on Wed, 02/03/2021 - 04:47

Try:

apt-get install libio-tty-perl libxml-simple-perl

That worked, the install completed. Webmin still looks the same. Is that normal?