8.45. XML::Parser-2.53

The XML::Parser module is a Perl interface to James Clark's XML parser, Expat.

Approximate build time: less than 0.1 SBU
Required disk space: 2.3 MB

8.45.1. Installation of XML::Parser

[Note]

Note

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.5.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

8.45.2. Contents of XML::Parser

Installed module: Expat.so

Short Descriptions

Expat

provides the Perl Expat interface