vmware / photon

Minimal Linux container host
https://vmware.github.io/photon
Other
3.03k stars 698 forks source link

install perl module XML::Parser failed ; environnment : photon os 3 and perl 5.28.0 and VCSA 8 #1514

Open quartzsilex opened 11 months ago

quartzsilex commented 11 months ago

Describe the bug

Hi everybody !

We want to custum VMs depoyement using perl script file:

i follow this documentation: https://kb.vmware.com/s/article/2007557 ( and so on)

have to install XLM::MOD::Path and all the dependency.

i can't go any further, i am stuck to the XML:Parse module installation.

here is the message error :

Running make test :

....................

...................................

Failed test at t/decl.t line 86.

got: '((bar|foo|xyz+),bar)'

expected: '((bar|foo|xyz+),zebra*)'

Failed test at t/decl.t line 95.

got: 'bar'

expected: 'zebra'

Failed test at t/decl.t line 96.

got: undef

expected: '*'

Looks like you failed 3 tests of 40.

..........................

....................................

make: *** [Makefile:971: test_dynamic] Error 255 TODDR/XML-Parser-2.46.tar.gz make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports TODDR/XML-Parser-2.46.tar.gz

i force the installation but can't have VMs customization succeed

Thanks in advance

best regards

Reproduction steps

1.perl -MCPAN -e 'force install XML::Parser' .......... .................. Running make test make[1]: Entering directory '/root/.cpan/build/XML-Parser-2.46-5/Expat' "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Expat.bs ../blib/arch/auto/XML/Parser/Expat/Expat.bs 644 Manifying 1 pod document make[1]: Leaving directory '/root/.cpan/build/XML-Parser-2.46-5/Expat' PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/.t t/astress.t ........... ok
t/cdata.t ............. ok
t/decl.t .............. 1/40

Failed test at t/decl.t line 86.

got: '((bar|foo|xyz+),bar)'

expected: '((bar|foo|xyz+),zebra*)'

Failed test at t/decl.t line 95.

got: 'bar'

expected: 'zebra'

Failed test at t/decl.t line 96.

got: undef

expected: '*'

Looks like you failed 3 tests of 40.

Expected behavior

the installation of the perl module

Additional context

VCSA 8 : photon os 3 perl 5.28.0

dweepadvani commented 11 months ago

@quartzsilex, Would you please answer following -

1) Did you try installing XML-Parser (tdnf install XML-Parser)? 2) Are you trying to build XML::Parser?

XML::Parser is already available in Photon OS 3.0 and above (1) installs it.

dcasota commented 11 months ago

@dweepadvani fyi https://communities.vmware.com/t5/Photon-OS-Discussions/install-perl-module-failed-environnment-photon-os-3-and-perl-5/m-p/2991806#M400 . Installing XML Parser finishes successful, but the cpan command retry finished with yet another error. I haven’t documented it in the thread though.