Knowledge Base:Software builds fail with perl module missing even though it is installed

Synopsis
When building software, it fails in the configure phase with a message similar to the following:

However, you are confident that XML::Parser is installed on the system:

Environment
This error can come up on any system with perl.

Analysis
Perl modules are built for a particular Perl target. When Perl upgrades to a higher version, these modules are not automatically rebuilt.

As a result, Perl itself might be a higher version although the module is only available for a lower version:

In the above examples, Perl is at 5.16.3 whereas the XML::Parser module is for 5.12.4.

The solution is to rebuild the XML-Parser package, or even better, rebuild all Perl-depending modules.

Resolution
Use  to rebuild all Perl modules currently built for older Perl versions.