[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">
|
---|
[599fda8] | 9 | <!ENTITY libxml2-md5sum "8127a65e8c3b08856093099b52599c86">
|
---|
[a270244] | 10 | <!ENTITY libxml2-size "4.7 MB">
|
---|
[9a788838] | 11 | <!ENTITY libxml2-buildsize "104 MB (additional 25 MB to run the full test suite)">
|
---|
[599fda8] | 12 | <!ENTITY libxml2-time "1.0 SBU (additional 0.2 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 |
|
---|
[599fda8] | 35 | &lfs70_checked;
|
---|
[7f4cdbc0] | 36 |
|
---|
[1515ed8a] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&libxml2-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&libxml2-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &libxml2-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &libxml2-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &libxml2-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &libxml2-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
[8e75f8b9] | 58 |
|
---|
[9a788838] | 59 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[5da63eb] | 60 | <itemizedlist spacing='compact'>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Optional Testsuite: <ulink
|
---|
[9a788838] | 63 | url="http://www.w3.org/XML/Test/xmlts20080827.tar.gz"/> - This
|
---|
[599fda8] | 64 | enables <command>make check</command> to do complete testing.</para>
|
---|
[5da63eb] | 65 | </listitem>
|
---|
[9a788838] | 66 | </itemizedlist>
|
---|
[5da63eb] | 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 |
|
---|
[9a788838] | 93 | <para>If you downloaded the testsuite, issue the following command:</para>
|
---|
[a270244] | 94 |
|
---|
[9a788838] | 95 | <screen><userinput>tar xf ../xmlts20080827.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 |
|
---|
[9a788838] | 103 | <para>To test the results, issue: <command>make check</command>. If you have
|
---|
| 104 | installed <application>Python</application> this will conclude by reporting
|
---|
| 105 | a failure in the regression tests. The extended testsuite runs near the end
|
---|
| 106 | of the tests, it will report a count of errors, and then report how many are
|
---|
| 107 | expected.</para>
|
---|
[8e75f8b9] | 108 |
|
---|
[1515ed8a] | 109 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8e75f8b9] | 110 |
|
---|
[1515ed8a] | 111 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[8e75f8b9] | 112 |
|
---|
[1515ed8a] | 113 | </sect2>
|
---|
[8e75f8b9] | 114 |
|
---|
[1515ed8a] | 115 | <sect2 role="commands">
|
---|
| 116 | <title>Command Explanations</title>
|
---|
| 117 |
|
---|
[f33cb079] | 118 | <para><parameter>--with-history</parameter>: If this option is used, it
|
---|
[a270244] | 119 | enables <application>Readline</application> support when running
|
---|
[00166c8a] | 120 | <command>xmlcatalog</command> or <command>xmllint</command> in shell
|
---|
| 121 | mode.</para>
|
---|
[f33cb079] | 122 |
|
---|
| 123 | <caution>
|
---|
[6473e74] | 124 | <para>When using history support, <command>make check</command> will
|
---|
| 125 | hang forever if either <filename>/etc/inputrc</filename> or
|
---|
| 126 | <filename>~/.inputrc</filename> has the option
|
---|
[00166c8a] | 127 | <option>show-all-if-ambiguous</option> or
|
---|
| 128 | <option>show-all-if-available</option> turned on.</para>
|
---|
[f33cb079] | 129 | </caution>
|
---|
[8e75f8b9] | 130 |
|
---|
[5da63eb] | 131 | <para><parameter>--enable-shared --disable-static</parameter>: This pair
|
---|
| 132 | of switches prevents the static libraries in this package from being
|
---|
| 133 | built and installed.</para>
|
---|
| 134 |
|
---|
[1515ed8a] | 135 | </sect2>
|
---|
[8e75f8b9] | 136 |
|
---|
[1515ed8a] | 137 | <sect2 role="content">
|
---|
| 138 | <title>Contents</title>
|
---|
| 139 |
|
---|
| 140 | <segmentedlist>
|
---|
| 141 | <segtitle>Installed Programs</segtitle>
|
---|
| 142 | <segtitle>Installed Libraries</segtitle>
|
---|
| 143 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 144 |
|
---|
[1515ed8a] | 145 | <seglistitem>
|
---|
| 146 | <seg>xml2-config, xmlcatalog, and xmllint</seg>
|
---|
[1039de3] | 147 | <seg>libxml2.{so,a} and optionally, the libxml2mod.{so,a}
|
---|
[1515ed8a] | 148 | <application>Python</application> module</seg>
|
---|
[437700ae] | 149 | <seg>/usr/include/libxml2, /usr/share/doc/libxml2-&libxml2-version;,
|
---|
| 150 | /usr/share/doc/libxml2-python-&libxml2-version; and
|
---|
| 151 | /usr/share/gtk-doc/html/libxml2</seg>
|
---|
[1515ed8a] | 152 | </seglistitem>
|
---|
| 153 | </segmentedlist>
|
---|
[8e75f8b9] | 154 |
|
---|
[1515ed8a] | 155 | <variablelist>
|
---|
| 156 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 157 | <?dbfo list-presentation="list"?>
|
---|
| 158 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 159 |
|
---|
[1515ed8a] | 160 | <varlistentry id="xml2-config">
|
---|
| 161 | <term><command>xml2-config</command></term>
|
---|
| 162 | <listitem>
|
---|
[74390482] | 163 | <para>determines the compile and linker flags that should be used to
|
---|
| 164 | compile and link programs that use
|
---|
[1515ed8a] | 165 | <filename class='libraryfile'>libxml2</filename>.</para>
|
---|
| 166 | <indexterm zone="libxml2 xml2-config">
|
---|
| 167 | <primary sortas="b-xml2-config">xml2-config</primary>
|
---|
| 168 | </indexterm>
|
---|
| 169 | </listitem>
|
---|
| 170 | </varlistentry>
|
---|
[8e75f8b9] | 171 |
|
---|
[1515ed8a] | 172 | <varlistentry id="xmlcatalog">
|
---|
| 173 | <term><command>xmlcatalog</command></term>
|
---|
| 174 | <listitem>
|
---|
[74390482] | 175 | <para>is used to monitor and manipulate XML
|
---|
[1515ed8a] | 176 | and SGML catalogs.</para>
|
---|
| 177 | <indexterm zone="libxml2 xmlcatalog">
|
---|
| 178 | <primary sortas="b-xmlcatalog">xmlcatalog</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
[8e75f8b9] | 182 |
|
---|
[1515ed8a] | 183 | <varlistentry id="xmllint">
|
---|
| 184 | <term><command>xmllint</command></term>
|
---|
| 185 | <listitem>
|
---|
[74390482] | 186 | <para>parses XML files and outputs reports (based
|
---|
[1515ed8a] | 187 | upon options) to detect errors in XML coding.</para>
|
---|
| 188 | <indexterm zone="libxml2 xmllint">
|
---|
| 189 | <primary sortas="b-xmllint">xmllint</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
[8e75f8b9] | 193 |
|
---|
[1515ed8a] | 194 | <varlistentry id="libxml2-lib">
|
---|
[1039de3] | 195 | <term><filename class='libraryfile'>libxml2.{so,a}</filename></term>
|
---|
[1515ed8a] | 196 | <listitem>
|
---|
[74390482] | 197 | <para> libraries provide the functions for programs to parse files
|
---|
[1515ed8a] | 198 | that use the XML format.</para>
|
---|
| 199 | <indexterm zone="libxml2 libxml2-lib">
|
---|
[1039de3] | 200 | <primary sortas="c-libxml2">libxml2.{so,a}</primary>
|
---|
[1515ed8a] | 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
[8e75f8b9] | 204 |
|
---|
[1515ed8a] | 205 | </variablelist>
|
---|
| 206 |
|
---|
| 207 | </sect2>
|
---|
[f45b1953] | 208 |
|
---|
| 209 | </sect1>
|
---|