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