[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8180b89] | 7 | <!ENTITY libxml2-download-http "http://xmlsoft.org/sources/libxml2-&libxml2-version;.tar.gz">
|
---|
| 8 | <!ENTITY libxml2-download-ftp "ftp://xmlsoft.org/libxml2/libxml2-&libxml2-version;.tar.gz">
|
---|
[cef5d3a] | 9 | <!ENTITY libxml2-md5sum "ae249165c173b1ff386ee8ad676815f5">
|
---|
| 10 | <!ENTITY libxml2-size "5.1 MB">
|
---|
[ec91d9f2] | 11 | <!ENTITY libxml2-buildsize "95 MB (additional 20 MB for tests)">
|
---|
[cef5d3a] | 12 | <!ENTITY libxml2-time "0.6 SBU (additional 0.2 SBU for tests)">
|
---|
[6b262734] | 13 | <!ENTITY testsuite-version "20130923">
|
---|
[52d29f7] | 14 | ]>
|
---|
| 15 |
|
---|
[f45b1953] | 16 | <sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;">
|
---|
[1515ed8a] | 17 | <?dbhtml filename="libxml2.html"?>
|
---|
[8e75f8b9] | 18 |
|
---|
[1515ed8a] | 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
[8e75f8b9] | 23 |
|
---|
[437700ae] | 24 | <title>libxml2-&libxml2-version;</title>
|
---|
[8e75f8b9] | 25 |
|
---|
[1515ed8a] | 26 | <indexterm zone="libxml2">
|
---|
[8180b89] | 27 | <primary sortas="a-libxml2">libxml2</primary>
|
---|
[1515ed8a] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[437700ae] | 31 | <title>Introduction to libxml2</title>
|
---|
[8e75f8b9] | 32 |
|
---|
[325113f8] | 33 | <para>
|
---|
[8180b89] | 34 | The <application>libxml2</application> package contains libraries
|
---|
| 35 | and utilities used for parsing XML files.
|
---|
[325113f8] | 36 | </para>
|
---|
[8e75f8b9] | 37 |
|
---|
[df69fbc] | 38 | &lfs7a_checked;
|
---|
[7f4cdbc0] | 39 |
|
---|
[1515ed8a] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[8180b89] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&libxml2-download-http;"/>
|
---|
| 45 | </para>
|
---|
[1515ed8a] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[8180b89] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&libxml2-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[1515ed8a] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[8180b89] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &libxml2-md5sum;
|
---|
| 55 | </para>
|
---|
[1515ed8a] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[8180b89] | 58 | <para>
|
---|
| 59 | Download size: &libxml2-size;
|
---|
| 60 | </para>
|
---|
[1515ed8a] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[8180b89] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &libxml2-buildsize;
|
---|
| 65 | </para>
|
---|
[1515ed8a] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[8180b89] | 68 | <para>
|
---|
| 69 | Estimated build time: &libxml2-time;
|
---|
| 70 | </para>
|
---|
[1515ed8a] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
[8e75f8b9] | 73 |
|
---|
[9a788838] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[8180b89] | 75 | <itemizedlist spacing="compact">
|
---|
[5da63eb] | 76 | <listitem>
|
---|
[325113f8] | 77 | <para>
|
---|
| 78 | Optional Testsuite:
|
---|
[6b262734] | 79 | <ulink url="http://www.w3.org/XML/Test/xmlts&testsuite-version;.tar.gz"/> - This
|
---|
[325113f8] | 80 | enables <command>make check</command> to do complete testing.
|
---|
| 81 | </para>
|
---|
[5da63eb] | 82 | </listitem>
|
---|
[cef5d3a] | 83 | <!-- All CVEs seem to have been applied in 2.9.4
|
---|
[391c170] | 84 | <listitem>
|
---|
| 85 | <para>
|
---|
| 86 | Required patch:
|
---|
| 87 | <ulink url="&patch-root;/libxml2-&libxml2-version;-security_fixes-1.patch"/>
|
---|
| 88 | </para>
|
---|
[cef5d3a] | 89 | </listitem>-->
|
---|
[9a788838] | 90 | </itemizedlist>
|
---|
[5da63eb] | 91 |
|
---|
[437700ae] | 92 | <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
|
---|
[8e75f8b9] | 93 |
|
---|
[325113f8] | 94 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 95 | <para role="recommended">
|
---|
[f48df219] | 96 | <xref linkend="python2"/> or <xref linkend="python3"/> (to build and install a
|
---|
[325113f8] | 97 | <application>Python</application> library module, additionally it is
|
---|
| 98 | required to run the full suite of tests)
|
---|
| 99 | </para>
|
---|
[0af6ce1] | 100 |
|
---|
[1aadfdf] | 101 | <note>
|
---|
[325113f8] | 102 | <para>
|
---|
| 103 | Some packages which utilize <application>libxml2</application> (such as
|
---|
| 104 | <application>GNOME Doc Utils</application>) need the
|
---|
| 105 | <application>Python</application> module installed to function properly
|
---|
[5bee197] | 106 | and some packages will not build properly if the
|
---|
[325113f8] | 107 | <application>Python</application> module is not available.
|
---|
| 108 | </para>
|
---|
[1aadfdf] | 109 | </note>
|
---|
| 110 |
|
---|
[ec91d9f2] | 111 | <para role="optional">
|
---|
| 112 | <xref linkend="valgrind"/> (may be used in the tests)
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
[325113f8] | 115 | <para condition="html" role="usernotes">
|
---|
| 116 | User Notes: <ulink url="&blfs-wiki;/libxml2"/>
|
---|
| 117 | </para>
|
---|
[1515ed8a] | 118 | </sect2>
|
---|
[8e75f8b9] | 119 |
|
---|
[1515ed8a] | 120 | <sect2 role="installation">
|
---|
[437700ae] | 121 | <title>Installation of libxml2</title>
|
---|
[1515ed8a] | 122 |
|
---|
[325113f8] | 123 | <para>
|
---|
| 124 | Install <application>libxml2</application> by running the following
|
---|
| 125 | commands:
|
---|
| 126 | </para>
|
---|
[1515ed8a] | 127 |
|
---|
[92245989] | 128 | <screen><userinput>./configure --prefix=/usr --disable-static --with-history &&
|
---|
[1515ed8a] | 129 | make</userinput></screen>
|
---|
| 130 |
|
---|
[6000a3e] | 131 | <para>If you downloaded the testsuite, issue the following command:</para>
|
---|
| 132 |
|
---|
| 133 | <screen><userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput></screen>
|
---|
| 134 |
|
---|
[8180b89] | 135 | <para>
|
---|
[beee921] | 136 | To test the results, issue: <command>make check > check.log</command>.
|
---|
| 137 | A summary of the results can be obtained with <command>grep -E
|
---|
| 138 | '^Total|expected' check.log</command>. If <xref linkend="valgrind"/> is
|
---|
| 139 | installed and you want to check memory leaks, replace
|
---|
| 140 | <command>check</command> with <command>check-valgrind</command>.
|
---|
[8180b89] | 141 | </para>
|
---|
[8e75f8b9] | 142 |
|
---|
[325113f8] | 143 | <para>
|
---|
| 144 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 145 | </para>
|
---|
[8e75f8b9] | 146 |
|
---|
[1515ed8a] | 147 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 148 | </sect2>
|
---|
[8e75f8b9] | 149 |
|
---|
[1515ed8a] | 150 | <sect2 role="commands">
|
---|
| 151 | <title>Command Explanations</title>
|
---|
| 152 |
|
---|
[55e8f78] | 153 | <para>
|
---|
| 154 | <command>sed -i ...</command>: This sed prevents many useless warnings
|
---|
| 155 | from being issued from libtool.
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
[325113f8] | 158 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 159 | href="../../xincludes/static-libraries.xml"/>
|
---|
[5da63eb] | 160 |
|
---|
[325113f8] | 161 | <para>
|
---|
[f48df219] | 162 | <parameter>--with-history</parameter>: This switch enables
|
---|
[325113f8] | 163 | <application>Readline</application> support when running
|
---|
| 164 | <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
|
---|
| 165 | </para>
|
---|
[8180b89] | 166 |
|
---|
[f48df219] | 167 | <para>
|
---|
| 168 | <option>--with-python=/usr/bin/python3</option>: Add this switch if you
|
---|
| 169 | want libxml2 to use Python3 instead of Python2.
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
[1515ed8a] | 172 | </sect2>
|
---|
[8e75f8b9] | 173 |
|
---|
[1515ed8a] | 174 | <sect2 role="content">
|
---|
| 175 | <title>Contents</title>
|
---|
| 176 |
|
---|
| 177 | <segmentedlist>
|
---|
| 178 | <segtitle>Installed Programs</segtitle>
|
---|
| 179 | <segtitle>Installed Libraries</segtitle>
|
---|
| 180 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 181 |
|
---|
[1515ed8a] | 182 | <seglistitem>
|
---|
[325113f8] | 183 | <seg>
|
---|
[8180b89] | 184 | xml2-config, xmlcatalog and xmllint
|
---|
[325113f8] | 185 | </seg>
|
---|
| 186 | <seg>
|
---|
| 187 | libxml2.so and optionally, the libxml2mod.so
|
---|
| 188 | <application>Python</application> module
|
---|
| 189 | </seg>
|
---|
| 190 | <seg>
|
---|
| 191 | /usr/include/libxml2,
|
---|
[ec91d9f2] | 192 | /usr/lib/cmake/libxml2,
|
---|
[325113f8] | 193 | /usr/share/doc/libxml2-&libxml2-version;,
|
---|
[ec91d9f2] | 194 | /usr/share/doc/libxml2-python-&libxml2-version;, and
|
---|
[325113f8] | 195 | /usr/share/gtk-doc/html/libxml2
|
---|
| 196 | </seg>
|
---|
[1515ed8a] | 197 | </seglistitem>
|
---|
| 198 | </segmentedlist>
|
---|
[8e75f8b9] | 199 |
|
---|
[1515ed8a] | 200 | <variablelist>
|
---|
| 201 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 202 | <?dbfo list-presentation="list"?>
|
---|
| 203 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 204 |
|
---|
[1515ed8a] | 205 | <varlistentry id="xml2-config">
|
---|
| 206 | <term><command>xml2-config</command></term>
|
---|
| 207 | <listitem>
|
---|
[325113f8] | 208 | <para>
|
---|
| 209 | determines the compile and linker flags that should be used to
|
---|
| 210 | compile and link programs that use
|
---|
| 211 | <filename class='libraryfile'>libxml2</filename>.
|
---|
| 212 | </para>
|
---|
[1515ed8a] | 213 | <indexterm zone="libxml2 xml2-config">
|
---|
| 214 | <primary sortas="b-xml2-config">xml2-config</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
[8e75f8b9] | 218 |
|
---|
[1515ed8a] | 219 | <varlistentry id="xmlcatalog">
|
---|
| 220 | <term><command>xmlcatalog</command></term>
|
---|
| 221 | <listitem>
|
---|
[325113f8] | 222 | <para>
|
---|
| 223 | is used to monitor and manipulate XML and SGML catalogs.
|
---|
| 224 | </para>
|
---|
[1515ed8a] | 225 | <indexterm zone="libxml2 xmlcatalog">
|
---|
| 226 | <primary sortas="b-xmlcatalog">xmlcatalog</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
[8e75f8b9] | 230 |
|
---|
[1515ed8a] | 231 | <varlistentry id="xmllint">
|
---|
| 232 | <term><command>xmllint</command></term>
|
---|
| 233 | <listitem>
|
---|
[325113f8] | 234 | <para>
|
---|
| 235 | parses XML files and outputs reports (based upon options) to detect
|
---|
| 236 | errors in XML coding.
|
---|
| 237 | </para>
|
---|
[1515ed8a] | 238 | <indexterm zone="libxml2 xmllint">
|
---|
| 239 | <primary sortas="b-xmllint">xmllint</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
[8e75f8b9] | 243 |
|
---|
[1515ed8a] | 244 | <varlistentry id="libxml2-lib">
|
---|
[8180b89] | 245 | <term><filename class="libraryfile">libxml2.so</filename></term>
|
---|
[1515ed8a] | 246 | <listitem>
|
---|
[325113f8] | 247 | <para>
|
---|
| 248 | provides functions for programs to parse files that use the XML
|
---|
| 249 | format.
|
---|
| 250 | </para>
|
---|
[1515ed8a] | 251 | <indexterm zone="libxml2 libxml2-lib">
|
---|
[325113f8] | 252 | <primary sortas="c-libxml2">libxml2.so</primary>
|
---|
[1515ed8a] | 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
[8180b89] | 256 |
|
---|
[1515ed8a] | 257 | </variablelist>
|
---|
[8180b89] | 258 |
|
---|
[1515ed8a] | 259 | </sect2>
|
---|
[8180b89] | 260 |
|
---|
[f45b1953] | 261 | </sect1>
|
---|