Hi,
Sorry for the long delay here on the Photon OS community forum.
For VCSA, the best way is to get paid support from your subscription. Maybe a few prerequisites are explicitly not installed by default because the method to gather the information needed is deprecated.
With respect to the issue 'XML-Parser-2.46.tar.gz' on open-source Photon OS, have you installed the package build-essential ?
I'm not a perl programmer, but I've tried to reproduce the issue on Photon OS 3 - here the bash script and a few findings.
# sample script on photon-3.0-935534
# update repo url if necessary
if [ `cat /etc/yum.repos.d/photon.repo | grep -o "packages.vmware.com/photon" | wc -l` -eq 0 ]; then
cd /etc/yum.repos.d/
sed -i 's/dl.bintray.com\/vmware/packages.vmware.com\/photon\/$releasever/g' photon.repo photon-updates.repo photon-extras.repo photon-debuginfo.repo
fi
# install perl
tdnf install -y perl expat build-essential
# to do : the path for lib.pm is /root/.cpan/build/local-lib-2.000029-2/lib/local/lib.pm
# run
perl -MCPAN -e 'install XML::DOM::XPath'
Perl is installable with tdnf install perl. Yes, the latest version 5.28 on Photon OS does not find lib.pm and it seems that after version 5.15 it has to be specified explicitly.
Unfortunately, after a few retries, perl -MCPAN -e 'install XML::DOM::XPath' still fails with
[...]
Result: FAIL
Failed 33/35 test programs. 1/3 subtests failed.
make: *** [Makefile:842: test_dynamic] Error 2
MIROD/XML-DOM-XPath-0.14.tar.gz
one dependency not OK (XML::DOM); additionally test harness failed
make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MIROD/XML-DOM-XPath-0.14.tar.gz
It should be possible to declare the missing modules for Photon OS 3 as well.
These sub-forums might help as well.
Hope it helps.