Comprehensive data protection for all workloads
Post Reply
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Perl module ubuntu 20.04 linux repository

Post by matteu »

Hello,

I'm trying to install linux repository and I need to install perl module to follow veeam documentation here : https://www.veeam.com/kb2216

To do this task I use these commands :

echo "yes" | cpan
#update urllist for span and commit it
(echo "o conf urllist http://cpan.metacpan.org/"; echo "o conf commit") | cpan
#cpan modules
echo "Installing cpan modules"

cpan install Term::ReadLine::Perl
cpan install Term::ReadKey

cpan install Carp
cpan install Cwd
cpan install Data::Dumper
...
cpan install Socket
cpan install Storable

But I have error with some modules :

cpan install SOAP::Lite (infinite loop : Please tell me where I can find your apache src
[../apache_x.x/src] ../apache_x.x/src)
cpan install Threads (error): Could not expand [Constant]. Check the module name.)
cpan install Constant (error): Could not expand [Constant]. Check the module name.)

Do you know how can I solve it ?
dandav
Influencer
Posts: 22
Liked: 4 times
Joined: Jan 15, 2021 2:53 am
Full Name: Daniel Davis
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by dandav » 1 person likes this post

Instead of using CPAN try using the native package manager as that will generally resolve any other dependencies and allow the OS to manage any updates

First install perldoc and use that to query the state of the perl modules. Any missing modules will error with "No documentation found for..."

Code: Select all

perldoc -l constant Carp Cwd Data::Dumper Encode Encode::Alias Encode::Config Encode::Encoding Encode::MIME::Name Exporter Exporter::Heavy File::Path File::Spec File::Spec::Unix File::Temp List::Util Scalar::Util SOAP::Lite Socket Storable threads
On any Debian/Ubuntu based system the following should be enough to fix your issue:

Code: Select all

sudo apt install perl-doc libsoap-lite-perl
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by matteu »

Hello,

Thank you very much for your answer.
I try on new system :

sudo apt install perl-doc libsoap-lite-perl
and then
perldoc -l constant Carp Cwd Data::Dumper Encode Encode::Alias Encode::Config Encode::Encoding Encode::MIME::Name Exporter Exporter::Heavy File::Path File::Spec File::Spec::Unix File::Temp List::Util Scalar::Util SOAP::Lite Socket Storable threads

all is ok :)
Thank you very much
HannesK
Product Manager
Posts: 14835
Liked: 3082 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by HannesK »

Hello,
just for curiosity: how did you manage to install Ubuntu 20.04. without perl?

I tried it a couple of times with minimal installations, but all pre-requisites were always available. I never had to install any perl stuff.

Best regards,
Hannes
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by matteu »

Hello,

You don't have all prerequesite without doing this.
I just install ubuntu with default setup and notice you don't have all what you need to be supported :)
HannesK
Product Manager
Posts: 14835
Liked: 3082 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by HannesK »

strange. maybe "minimal" installs more than "default" :-)
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by matteu »

Try this command :

sudo apt install perl-doc
and then
perldoc -l constant Carp Cwd Data::Dumper Encode Encode::Alias Encode::Config Encode::Encoding Encode::MIME::Name Exporter Exporter::Heavy File::Path File::Spec File::Spec::Unix File::Temp List::Util Scalar::Util SOAP::Lite Socket Storable threads

You'll see one line with No documentation found for...
This means you need to install libsoap-lite-perl package
HannesK
Product Manager
Posts: 14835
Liked: 3082 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by HannesK »

if the answer was for me: everything always works out of the box for me with Ubuntu 20.04. I never had to manually install anything.
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by matteu »

Answer was for you ^^.

I don't say it doesn't work. I just stay, you don't have all module veeam ask in the KB.
It's perfectly working without this but it doesn't meet the veeam prerequesites ^^
HannesK
Product Manager
Posts: 14835
Liked: 3082 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by HannesK »

okay, so you are asking for a better documentation? :-)

What I tried to say: No need to "fix" things that are working.
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Perl module ubuntu 20.04 linux repository

Post by matteu »

Documentation is perfect !

dandav give me the answer :)

On veeam documentation it's written you need perl module https://www.veeam.com/kb2216
All perl modules are not included with ubuntu 20.04 and I asked how to install them.
He helped me to solve it :)

It's not mandatory to install it for veeam to work, but I suppose you could have some problem during Multi-OS FLR or if you use linux repository and I want to avoid it :)

I don't need help anymore on this point :)
Post Reply

Who is online

Users browsing this forum: Bing [Bot], gavrun, sturmtr and 166 guests