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