Difference between revisions of "LibXML2"

From CBLFS
Jump to navigationJump to search
(Optional)
m
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{| style="text-align: left; background-color: AliceBlue;"
 
{| style="text-align: left; background-color: AliceBlue;"
|-
+
|-valign="top"
 
!Download Source:
 
!Download Source:
| http://ftp.gnome.org/pub/gnome/sources/libxml2/2.6/libxml2-2.6.26.tar.gz
+
| ftp://xmlsoft.org/libxml2/libxml2-{{LibXML2-Version}}.tar.gz
 
|}
 
|}
  
 
----
 
----
 +
 +
{{Package-Introduction|LibXML2 is the XML C parser and toolkit developed for the [[Gnome]] project (but usable outside of the [[Gnome]] platform). Although the library is written in C, a variety of language bindings make it available in other environments.|http://xmlsoft.org/}}
  
 
== Dependencies ==
 
== Dependencies ==
  
 
=== Optional ===
 
=== Optional ===
* [[Python]] && [[Wget]] to run the full test-suite.
+
* [[Python]] and [[Wget]] to run the full test-suite.
 
* [[LibXSLT]] is used in the test suite.
 
* [[LibXSLT]] is used in the test suite.
* [[Python]] is needed for example to build gnome-panel.
+
* [[Python]] is needed for example to build [[Gnome]].
 +
 
 +
== Test Suite Notes ==
 +
 
 +
If you wish to run the 32-bit test suites in a 64-bit environment (i.e. the 32Bit and N32 sections), you need to use '''make USE_ARCH=32 check'''. If you do not include ''USE_ARCH=32'', then the Python tests will fail.
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 65: Line 71:
 
  mv -v /usr/bin/xml2-config{,-64} &&
 
  mv -v /usr/bin/xml2-config{,-64} &&
 
  ln -sfv multiarch_wrapper /usr/bin/xml2-config
 
  ln -sfv multiarch_wrapper /usr/bin/xml2-config
 +
 +
= Contents =
 +
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! Installed Programs:
 +
| xml2-config, xmlcatalog, and xmllint
 +
|-valign="top"
 +
! Installed Libraries:
 +
| libxml2.{so,a} and optionally, the libxml2mod.{so,a} Python module
 +
|-valign="top"
 +
! Installed Directories:
 +
| /usr/include/libxml2, /usr/share/doc/libxml2-{{LibXML2-Version}}, /usr/share/doc/libxml2-python-{{LibXML2-Version}} and /usr/share/gtk-doc/html/libxml2
 +
|}
 +
 +
=== Short Descriptions ===
 +
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! xml2-config
 +
| determines the compile and linker flags that should be used to compile and link programs that use libxml2.
 +
|-valign="top"
 +
! xmlcatalog
 +
| is used to monitor and manipulate XML and SGML catalogs.
 +
|-valign="top"
 +
! xmllint
 +
| parses XML files and outputs reports (based upon options) to detect errors in XML coding.
 +
|-valign="top"
 +
! libxml2.{so,a}
 +
| libraries provide the functions for programs to parse files that use the XML format.
 +
|}
 +
 +
[[Category:General Libs]]

Latest revision as of 13:43, 8 February 2009

Download Source: ftp://xmlsoft.org/libxml2/libxml2-2.9.1.tar.gz

Introduction to LibXML2

LibXML2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform). Although the library is written in C, a variety of language bindings make it available in other environments.

Project Homepage: http://xmlsoft.org/

Dependencies

Optional

Test Suite Notes

If you wish to run the 32-bit test suites in a 64-bit environment (i.e. the 32Bit and N32 sections), you need to use make USE_ARCH=32 check. If you do not include USE_ARCH=32, then the Python tests will fail.

Non-Multilib

Compile the package:

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

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr &&
make

Install the package

make install &&
mv -v /usr/bin/xml2-config{,-32}

N32

Compile the package:

CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr \
    --libdir=/usr/lib32 &&
make

Install the package

make install &&
mv -v /usr/bin/xml2-config{,-n32}

64Bit

Compile the package:

CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr \
    --libdir=/usr/lib64 &&
make

Install the package

make install &&
mv -v /usr/bin/xml2-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/xml2-config

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.9.1, /usr/share/doc/libxml2-python-2.9.1 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.