libxml2-2.7.8

Introduction to libxml2

The libxml2 package contains XML libraries. These are useful for parsing XML files.

This package is known to build and work properly using an LFS-7.0 platform.

Package Information

Additional Downloads

libxml2 Dependencies

Optional

Python-2.7.2 (to build and install a Python library module, additionally it is required to run the full suite of tests)

[Note]

Note

Some packages which utilize libxml2 (such as GNOME Doc Utils) need the Python module installed to function properly and some packages (such as GNOME Panel) will not build properly if the Python module is not available.

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libxml2

Installation of libxml2

If you downloaded the testsuite, issue the following command:

tar xf ../xmlts20080827.tar.gz

Install libxml2 by running the following commands:

./configure --prefix=/usr &&
make

To test the results, issue: make check. If you have installed Python this will conclude by reporting a failure in the regression tests. The extended testsuite runs near the end of the tests, it will report a count of errors, and then report how many are expected.

Now, as the root user:

make install

Command Explanations

--with-history: If this option is used, it enables Readline support when running xmlcatalog or xmllint in shell mode.

[Caution]

Caution

When using history support, make check will hang forever if either /etc/inputrc or ~/.inputrc has the option show-all-if-ambiguous or show-all-if-available turned on.

--enable-shared --disable-static: This pair of switches prevents the static libraries in this package from being built and installed.

Contents

Installed Programs: xml2-config, xmlcatalog, and xmllint
Installed Libraries: libxml2.{so,a} and optionally, the libxml2mod.{so,a} Python module
Installed Directories: /usr/include/libxml2, /usr/share/doc/libxml2-2.7.8, /usr/share/doc/libxml2-python-2.7.8 and /usr/share/gtk-doc/html/libxml2

Short Descriptions

xml2-config

determines the compile and linker flags that should be used to compile and link programs that use libxml2.

xmlcatalog

is used to monitor and manipulate XML and SGML catalogs.

xmllint

parses XML files and outputs reports (based upon options) to detect errors in XML coding.

libxml2.{so,a}

libraries provide the functions for programs to parse files that use the XML format.

Last updated on 2011-10-23 22:03:46 +0000