[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">
|
---|
[4890200] | 9 | <!ENTITY libxml2-md5sum "9c0cfef285d5c4a5c80d00904ddab380">
|
---|
[8180b89] | 10 | <!ENTITY libxml2-size "5.0 MB">
|
---|
| 11 | <!ENTITY libxml2-buildsize "100 MB">
|
---|
[4890200] | 12 | <!ENTITY libxml2-time "0.6 SBU">
|
---|
[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 |
|
---|
[c536e673] | 38 | &lfs76_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>
|
---|
[9a788838] | 83 | </itemizedlist>
|
---|
[5da63eb] | 84 |
|
---|
[437700ae] | 85 | <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
|
---|
[8e75f8b9] | 86 |
|
---|
[325113f8] | 87 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 88 | <para role="recommended">
|
---|
| 89 | <xref linkend="python2"/> (to build and install a
|
---|
| 90 | <application>Python</application> library module, additionally it is
|
---|
| 91 | required to run the full suite of tests)
|
---|
| 92 | </para>
|
---|
[0af6ce1] | 93 |
|
---|
[1aadfdf] | 94 | <note>
|
---|
[325113f8] | 95 | <para>
|
---|
| 96 | Some packages which utilize <application>libxml2</application> (such as
|
---|
| 97 | <application>GNOME Doc Utils</application>) need the
|
---|
| 98 | <application>Python</application> module installed to function properly
|
---|
[06eea232] | 99 | and some packages will not build properly if the
|
---|
[325113f8] | 100 | <application>Python</application> module is not available.
|
---|
| 101 | </para>
|
---|
[1aadfdf] | 102 | </note>
|
---|
| 103 |
|
---|
[325113f8] | 104 | <para condition="html" role="usernotes">
|
---|
| 105 | User Notes: <ulink url="&blfs-wiki;/libxml2"/>
|
---|
| 106 | </para>
|
---|
[1515ed8a] | 107 | </sect2>
|
---|
[8e75f8b9] | 108 |
|
---|
[1515ed8a] | 109 | <sect2 role="installation">
|
---|
[437700ae] | 110 | <title>Installation of libxml2</title>
|
---|
[1515ed8a] | 111 |
|
---|
[9a788838] | 112 | <para>If you downloaded the testsuite, issue the following command:</para>
|
---|
[a270244] | 113 |
|
---|
[6b262734] | 114 | <screen><userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput></screen>
|
---|
[5da63eb] | 115 |
|
---|
[325113f8] | 116 | <para>
|
---|
| 117 | Install <application>libxml2</application> by running the following
|
---|
| 118 | commands:
|
---|
| 119 | </para>
|
---|
[1515ed8a] | 120 |
|
---|
[9506e84] | 121 | <screen><userinput>./configure --prefix=/usr --disable-static --with-history &&
|
---|
[1515ed8a] | 122 | make</userinput></screen>
|
---|
| 123 |
|
---|
[8180b89] | 124 | <para>
|
---|
| 125 | To test the results, issue: <command>make check</command>.
|
---|
| 126 | </para>
|
---|
[8e75f8b9] | 127 |
|
---|
[325113f8] | 128 | <para>
|
---|
| 129 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 130 | </para>
|
---|
[8e75f8b9] | 131 |
|
---|
[1515ed8a] | 132 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 133 | </sect2>
|
---|
[8e75f8b9] | 134 |
|
---|
[1515ed8a] | 135 | <sect2 role="commands">
|
---|
| 136 | <title>Command Explanations</title>
|
---|
| 137 |
|
---|
[325113f8] | 138 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 139 | href="../../xincludes/static-libraries.xml"/>
|
---|
[5da63eb] | 140 |
|
---|
[325113f8] | 141 | <para>
|
---|
[9506e84] | 142 | <option>--with-history</option>: This switch enables
|
---|
[325113f8] | 143 | <application>Readline</application> support when running
|
---|
| 144 | <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
|
---|
| 145 | </para>
|
---|
[8180b89] | 146 |
|
---|
[1515ed8a] | 147 | </sect2>
|
---|
[8e75f8b9] | 148 |
|
---|
[1515ed8a] | 149 | <sect2 role="content">
|
---|
| 150 | <title>Contents</title>
|
---|
| 151 |
|
---|
| 152 | <segmentedlist>
|
---|
| 153 | <segtitle>Installed Programs</segtitle>
|
---|
| 154 | <segtitle>Installed Libraries</segtitle>
|
---|
| 155 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 156 |
|
---|
[1515ed8a] | 157 | <seglistitem>
|
---|
[325113f8] | 158 | <seg>
|
---|
[8180b89] | 159 | xml2-config, xmlcatalog and xmllint
|
---|
[325113f8] | 160 | </seg>
|
---|
| 161 | <seg>
|
---|
| 162 | libxml2.so and optionally, the libxml2mod.so
|
---|
| 163 | <application>Python</application> module
|
---|
| 164 | </seg>
|
---|
| 165 | <seg>
|
---|
| 166 | /usr/include/libxml2,
|
---|
| 167 | /usr/share/doc/libxml2-&libxml2-version;,
|
---|
| 168 | /usr/share/doc/libxml2-python-&libxml2-version; and
|
---|
| 169 | /usr/share/gtk-doc/html/libxml2
|
---|
| 170 | </seg>
|
---|
[1515ed8a] | 171 | </seglistitem>
|
---|
| 172 | </segmentedlist>
|
---|
[8e75f8b9] | 173 |
|
---|
[1515ed8a] | 174 | <variablelist>
|
---|
| 175 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 176 | <?dbfo list-presentation="list"?>
|
---|
| 177 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 178 |
|
---|
[1515ed8a] | 179 | <varlistentry id="xml2-config">
|
---|
| 180 | <term><command>xml2-config</command></term>
|
---|
| 181 | <listitem>
|
---|
[325113f8] | 182 | <para>
|
---|
| 183 | determines the compile and linker flags that should be used to
|
---|
| 184 | compile and link programs that use
|
---|
| 185 | <filename class='libraryfile'>libxml2</filename>.
|
---|
| 186 | </para>
|
---|
[1515ed8a] | 187 | <indexterm zone="libxml2 xml2-config">
|
---|
| 188 | <primary sortas="b-xml2-config">xml2-config</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
[8e75f8b9] | 192 |
|
---|
[1515ed8a] | 193 | <varlistentry id="xmlcatalog">
|
---|
| 194 | <term><command>xmlcatalog</command></term>
|
---|
| 195 | <listitem>
|
---|
[325113f8] | 196 | <para>
|
---|
| 197 | is used to monitor and manipulate XML and SGML catalogs.
|
---|
| 198 | </para>
|
---|
[1515ed8a] | 199 | <indexterm zone="libxml2 xmlcatalog">
|
---|
| 200 | <primary sortas="b-xmlcatalog">xmlcatalog</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
[8e75f8b9] | 204 |
|
---|
[1515ed8a] | 205 | <varlistentry id="xmllint">
|
---|
| 206 | <term><command>xmllint</command></term>
|
---|
| 207 | <listitem>
|
---|
[325113f8] | 208 | <para>
|
---|
| 209 | parses XML files and outputs reports (based upon options) to detect
|
---|
| 210 | errors in XML coding.
|
---|
| 211 | </para>
|
---|
[1515ed8a] | 212 | <indexterm zone="libxml2 xmllint">
|
---|
| 213 | <primary sortas="b-xmllint">xmllint</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
[8e75f8b9] | 217 |
|
---|
[1515ed8a] | 218 | <varlistentry id="libxml2-lib">
|
---|
[8180b89] | 219 | <term><filename class="libraryfile">libxml2.so</filename></term>
|
---|
[1515ed8a] | 220 | <listitem>
|
---|
[325113f8] | 221 | <para>
|
---|
| 222 | provides functions for programs to parse files that use the XML
|
---|
| 223 | format.
|
---|
| 224 | </para>
|
---|
[1515ed8a] | 225 | <indexterm zone="libxml2 libxml2-lib">
|
---|
[325113f8] | 226 | <primary sortas="c-libxml2">libxml2.so</primary>
|
---|
[1515ed8a] | 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
[8180b89] | 230 |
|
---|
[1515ed8a] | 231 | </variablelist>
|
---|
[8180b89] | 232 |
|
---|
[1515ed8a] | 233 | </sect2>
|
---|
[8180b89] | 234 |
|
---|
[f45b1953] | 235 | </sect1>
|
---|