The XML::Parser module is a Perl interface to James Clark's XML parser, Expat.
This package is scheduled to move to BLFS. Until that can be done, two Perl modules need to be added. To do that, we also have to enable DNS by temporarily adding /etc/resolv.conf.
cat > /etc/resolv.conf << EOF nameserver 8.8.8.8 nameserver 8.8.4.4 EOF
Alternatively, you may skip this package and the next package (intltool) as nothing else in LFS needs them. When you build a BLFS package requiring XML::Parser or intltool, install those modules following the BLFS instruction, and then install this package.
Now add two Perl modules:
yes | cpan -i File::ShareDir yes | cpan -i File::ShareDir::Install
Finish this temproary workaround by removing /etc/resolv.conf. A discussion of this file will be made at Section 9.2.2, “Creating the /etc/resolv.conf File”
rm /etc/resolv.conf
Prepare XML::Parser for compilation:
perl Makefile.PL
Compile the package:
make
To test the results, issue:
make test
Install the package:
make install