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