KBEC-00144 - Adding XPATH to Perl under Linux

Article ID:360032831252
1 minute readKnowledge base

Description

Almost all Linux distributions come with Perl, but not all have the Perl package XML-XPATH.

Use Case

  • You encounter an error during ElectricSentry that has the text "Can’t locate XML/XPATH.pm in @INC …​."

  • You specify "use ElectricCommander" in a Perl script.

Recipe

  • Download the Perl package from the internet.

  • Use rpm -Uvh to add the package from a local or network disk.

Solution

There are two solutions:

Red Hat

  • up2date perl-XML-XPATH

  • rpm -Uvh /opt/perl-XML-XPath-1.13-2.2.el4.rf.noarch.rpm

cpan.org