Introduction to libxml2
The libxml2 package contains
libraries and utilities used for parsing XML files.
This package is known to build and work properly using an LFS-7.10
Python-2.7.12 or Python-3.5.2 (to build and
install a Python library module,
additionally it is required to run the full suite of tests)
Some packages which utilize libxml2 (such as GNOME Doc Utils) need the Python module installed to function properly
and some packages will not build properly if the Python module is not available.
Valgrind-3.11.0 (may be used in the tests)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libxml2
Installation of libxml2
Install libxml2 by running the
sed -i "/seems to be moved/s/^/#/" ltmain.sh &&
./configure --prefix=/usr --disable-static --with-history &&
If you downloaded the testsuite, issue the following command:
tar xf ../xmlts20130923.tar.gz
To test the results, issue: make
check > check.log. A summary of the results can
be obtained with grep -E
'^Total|expected' check.log. If Valgrind-3.11.0 is
installed and you want to check memory leaks, replace check with check-valgrind.
Now, as the
sed -i ...: This sed
prevents many useless warnings from being issued from libtool.
switch prevents installation of static versions of the libraries.
--with-history: This switch
enables Readline support when
running xmlcatalog or
xmllint in shell
this switch if you want libxml2 to use Python3 instead of Python2.
xml2-config, xmlcatalog and
libxml2.so and optionally, the
determines the compile and linker flags that should be
used to compile and link programs that use
is used to monitor and manipulate XML and SGML catalogs.
parses XML files and outputs reports (based upon options)
to detect errors in XML coding.
provides functions for programs to parse files that use
the XML format.
Last updated on 2016-08-27 00:16:27 -0500