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