[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">
|
---|
| 9 | <!ENTITY libxml2-md5sum "5b9bebf4f5d2200ae2c4efe8fa6103f7">
|
---|
| 10 | <!ENTITY libxml2-size "5.0 MB">
|
---|
| 11 | <!ENTITY libxml2-buildsize "100 MB">
|
---|
[325113f8] | 12 | <!ENTITY libxml2-time "0.7 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[f45b1953] | 15 | <sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;">
|
---|
[1515ed8a] | 16 | <?dbhtml filename="libxml2.html"?>
|
---|
[8e75f8b9] | 17 |
|
---|
[1515ed8a] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[8e75f8b9] | 22 |
|
---|
[437700ae] | 23 | <title>libxml2-&libxml2-version;</title>
|
---|
[8e75f8b9] | 24 |
|
---|
[1515ed8a] | 25 | <indexterm zone="libxml2">
|
---|
[8180b89] | 26 | <primary sortas="a-libxml2">libxml2</primary>
|
---|
[1515ed8a] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[437700ae] | 30 | <title>Introduction to libxml2</title>
|
---|
[8e75f8b9] | 31 |
|
---|
[325113f8] | 32 | <para>
|
---|
[8180b89] | 33 | The <application>libxml2</application> package contains libraries
|
---|
| 34 | and utilities used for parsing XML files.
|
---|
[325113f8] | 35 | </para>
|
---|
[8e75f8b9] | 36 |
|
---|
[b48c67a] | 37 | &lfs72_checked;
|
---|
[7f4cdbc0] | 38 |
|
---|
[1515ed8a] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[8180b89] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&libxml2-download-http;"/>
|
---|
| 44 | </para>
|
---|
[1515ed8a] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[8180b89] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&libxml2-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[1515ed8a] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[8180b89] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &libxml2-md5sum;
|
---|
| 54 | </para>
|
---|
[1515ed8a] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[8180b89] | 57 | <para>
|
---|
| 58 | Download size: &libxml2-size;
|
---|
| 59 | </para>
|
---|
[1515ed8a] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[8180b89] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &libxml2-buildsize;
|
---|
| 64 | </para>
|
---|
[1515ed8a] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[8180b89] | 67 | <para>
|
---|
| 68 | Estimated build time: &libxml2-time;
|
---|
| 69 | </para>
|
---|
[1515ed8a] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
[8e75f8b9] | 72 |
|
---|
[9a788838] | 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[8180b89] | 74 | <itemizedlist spacing="compact">
|
---|
[5da63eb] | 75 | <listitem>
|
---|
[325113f8] | 76 | <para>
|
---|
| 77 | Optional Testsuite:
|
---|
| 78 | <ulink url="http://www.w3.org/XML/Test/xmlts20080827.tar.gz"/> - This
|
---|
| 79 | enables <command>make check</command> to do complete testing.
|
---|
| 80 | </para>
|
---|
[5da63eb] | 81 | </listitem>
|
---|
[9a788838] | 82 | </itemizedlist>
|
---|
[5da63eb] | 83 |
|
---|
[437700ae] | 84 | <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
|
---|
[8e75f8b9] | 85 |
|
---|
[325113f8] | 86 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 87 | <para role="recommended">
|
---|
| 88 | <xref linkend="python2"/> (to build and install a
|
---|
| 89 | <application>Python</application> library module, additionally it is
|
---|
| 90 | required to run the full suite of tests)
|
---|
| 91 | </para>
|
---|
[0af6ce1] | 92 |
|
---|
[1aadfdf] | 93 | <note>
|
---|
[325113f8] | 94 | <para>
|
---|
| 95 | Some packages which utilize <application>libxml2</application> (such as
|
---|
| 96 | <application>GNOME Doc Utils</application>) need the
|
---|
| 97 | <application>Python</application> module installed to function properly
|
---|
[8180b89] | 98 | and some packages (such as MesaLib) will not build properly if the
|
---|
[325113f8] | 99 | <application>Python</application> module is not available.
|
---|
| 100 | </para>
|
---|
[1aadfdf] | 101 | </note>
|
---|
| 102 |
|
---|
[325113f8] | 103 | <para condition="html" role="usernotes">
|
---|
| 104 | User Notes: <ulink url="&blfs-wiki;/libxml2"/>
|
---|
| 105 | </para>
|
---|
[1515ed8a] | 106 | </sect2>
|
---|
[8e75f8b9] | 107 |
|
---|
[1515ed8a] | 108 | <sect2 role="installation">
|
---|
[437700ae] | 109 | <title>Installation of libxml2</title>
|
---|
[1515ed8a] | 110 |
|
---|
[9a788838] | 111 | <para>If you downloaded the testsuite, issue the following command:</para>
|
---|
[a270244] | 112 |
|
---|
[9a788838] | 113 | <screen><userinput>tar xf ../xmlts20080827.tar.gz</userinput></screen>
|
---|
[5da63eb] | 114 |
|
---|
[325113f8] | 115 | <para>
|
---|
| 116 | Install <application>libxml2</application> by running the following
|
---|
| 117 | commands:
|
---|
| 118 | </para>
|
---|
[1515ed8a] | 119 |
|
---|
[325113f8] | 120 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[1515ed8a] | 121 | make</userinput></screen>
|
---|
| 122 |
|
---|
[8180b89] | 123 | <para>
|
---|
| 124 | To test the results, issue: <command>make check</command>.
|
---|
| 125 | </para>
|
---|
[8e75f8b9] | 126 |
|
---|
[325113f8] | 127 | <para>
|
---|
| 128 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 129 | </para>
|
---|
[8e75f8b9] | 130 |
|
---|
[1515ed8a] | 131 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 132 | </sect2>
|
---|
[8e75f8b9] | 133 |
|
---|
[1515ed8a] | 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
| 136 |
|
---|
[325113f8] | 137 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 138 | href="../../xincludes/static-libraries.xml"/>
|
---|
[5da63eb] | 139 |
|
---|
[325113f8] | 140 | <para>
|
---|
[8180b89] | 141 | <option>--with-history</option>: If this switch is used, it enables
|
---|
[325113f8] | 142 | <application>Readline</application> support when running
|
---|
| 143 | <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
|
---|
| 144 | </para>
|
---|
[8180b89] | 145 |
|
---|
[1515ed8a] | 146 | </sect2>
|
---|
[8e75f8b9] | 147 |
|
---|
[1515ed8a] | 148 | <sect2 role="content">
|
---|
| 149 | <title>Contents</title>
|
---|
| 150 |
|
---|
| 151 | <segmentedlist>
|
---|
| 152 | <segtitle>Installed Programs</segtitle>
|
---|
| 153 | <segtitle>Installed Libraries</segtitle>
|
---|
| 154 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 155 |
|
---|
[1515ed8a] | 156 | <seglistitem>
|
---|
[325113f8] | 157 | <seg>
|
---|
[8180b89] | 158 | xml2-config, xmlcatalog and xmllint
|
---|
[325113f8] | 159 | </seg>
|
---|
| 160 | <seg>
|
---|
| 161 | libxml2.so and optionally, the libxml2mod.so
|
---|
| 162 | <application>Python</application> module
|
---|
| 163 | </seg>
|
---|
| 164 | <seg>
|
---|
| 165 | /usr/include/libxml2,
|
---|
| 166 | /usr/share/doc/libxml2-&libxml2-version;,
|
---|
| 167 | /usr/share/doc/libxml2-python-&libxml2-version; and
|
---|
| 168 | /usr/share/gtk-doc/html/libxml2
|
---|
| 169 | </seg>
|
---|
[1515ed8a] | 170 | </seglistitem>
|
---|
| 171 | </segmentedlist>
|
---|
[8e75f8b9] | 172 |
|
---|
[1515ed8a] | 173 | <variablelist>
|
---|
| 174 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 175 | <?dbfo list-presentation="list"?>
|
---|
| 176 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 177 |
|
---|
[1515ed8a] | 178 | <varlistentry id="xml2-config">
|
---|
| 179 | <term><command>xml2-config</command></term>
|
---|
| 180 | <listitem>
|
---|
[325113f8] | 181 | <para>
|
---|
| 182 | determines the compile and linker flags that should be used to
|
---|
| 183 | compile and link programs that use
|
---|
| 184 | <filename class='libraryfile'>libxml2</filename>.
|
---|
| 185 | </para>
|
---|
[1515ed8a] | 186 | <indexterm zone="libxml2 xml2-config">
|
---|
| 187 | <primary sortas="b-xml2-config">xml2-config</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
[8e75f8b9] | 191 |
|
---|
[1515ed8a] | 192 | <varlistentry id="xmlcatalog">
|
---|
| 193 | <term><command>xmlcatalog</command></term>
|
---|
| 194 | <listitem>
|
---|
[325113f8] | 195 | <para>
|
---|
| 196 | is used to monitor and manipulate XML and SGML catalogs.
|
---|
| 197 | </para>
|
---|
[1515ed8a] | 198 | <indexterm zone="libxml2 xmlcatalog">
|
---|
| 199 | <primary sortas="b-xmlcatalog">xmlcatalog</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
[8e75f8b9] | 203 |
|
---|
[1515ed8a] | 204 | <varlistentry id="xmllint">
|
---|
| 205 | <term><command>xmllint</command></term>
|
---|
| 206 | <listitem>
|
---|
[325113f8] | 207 | <para>
|
---|
| 208 | parses XML files and outputs reports (based upon options) to detect
|
---|
| 209 | errors in XML coding.
|
---|
| 210 | </para>
|
---|
[1515ed8a] | 211 | <indexterm zone="libxml2 xmllint">
|
---|
| 212 | <primary sortas="b-xmllint">xmllint</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
[8e75f8b9] | 216 |
|
---|
[1515ed8a] | 217 | <varlistentry id="libxml2-lib">
|
---|
[8180b89] | 218 | <term><filename class="libraryfile">libxml2.so</filename></term>
|
---|
[1515ed8a] | 219 | <listitem>
|
---|
[325113f8] | 220 | <para>
|
---|
| 221 | provides functions for programs to parse files that use the XML
|
---|
| 222 | format.
|
---|
| 223 | </para>
|
---|
[1515ed8a] | 224 | <indexterm zone="libxml2 libxml2-lib">
|
---|
[325113f8] | 225 | <primary sortas="c-libxml2">libxml2.so</primary>
|
---|
[1515ed8a] | 226 | </indexterm>
|
---|
| 227 | </listitem>
|
---|
| 228 | </varlistentry>
|
---|
[8180b89] | 229 |
|
---|
[1515ed8a] | 230 | </variablelist>
|
---|
[8180b89] | 231 |
|
---|
[1515ed8a] | 232 | </sect2>
|
---|
[8180b89] | 233 |
|
---|
[f45b1953] | 234 | </sect1>
|
---|