centos libxml2

Posted on

centos libxml2

Introduction to libx‍ml2

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.4 platform.

Package Information

Additional Downloads

libxml2 Dependencies

Python-2.7.6 (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 (such as MesaLib) 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 ../xmlts20130923.tar.gz

Install libxml2 by running the following commands: ./configure --prefix=/usr --disable-static --with-history && make

To test the results, issue: make check.

Now, as the

root user: make install

Command Explanations

--disable-static : This switch prevents installation of static versions of the libraries.

--with-history : This switch enables Readline support when running xmlcatalog or xmllint in shell mode.


Installed Programs: xml2-config, xmlcatalog and xmllint

Installed Libraries: libxml2.so and optionally, the libxml2mod.so Python module

Installed Directories: /usr/include/libxml2, /usr/share/doc/libxml2-2.9.1, /usr/share/doc/libxml2-python-2.9.1 and /usr/share/gtk-doc/html/libxml2

Short Descriptions


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.


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

转载请注明作者(RobinChia)和出处 It so life ,请勿用于任何商业用途
本文链接: centos libxml2