[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[5404a65] | 7 | <!ENTITY libxml2-download-http "&gnome-download-http;/libxml2/2.6/libxml2-&libxml2-version;.tar.gz">
|
---|
[ec20ccf] | 8 | <!-- Broken link
|
---|
| 9 | <!ENTITY libxml2-download-http "http://xmlsoft.org/libxml2/libxml2-&libxml2-version;.tar.gz">
|
---|
| 10 | -->
|
---|
[dd58fed6] | 11 | <!ENTITY libxml2-download-ftp "ftp://xmlsoft.org/libxml2/libxml2-&libxml2-version;.tar.gz">
|
---|
[01456e9d] | 12 | <!ENTITY libxml2-size "4.3 MB">
|
---|
[39faaf4] | 13 | <!ENTITY libxml2-md5sum "a0e913c13b5ddbd336fcca7104da6583">
|
---|
[01456e9d] | 14 | <!ENTITY libxml2-buildsize "82 MB (additional 187 MB to run the test suite)">
|
---|
| 15 | <!ENTITY libxml2-time "1.2 SBU (additional 1.5 SBU to run the test suite)">
|
---|
[52d29f7] | 16 | ]>
|
---|
| 17 |
|
---|
[f45b1953] | 18 | <sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;">
|
---|
[1515ed8a] | 19 | <?dbhtml filename="libxml2.html"?>
|
---|
[8e75f8b9] | 20 |
|
---|
[1515ed8a] | 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
[4f26c54] | 24 | <keywordset>
|
---|
| 25 | <keyword role="package">libxml2-&libxml2-version;.tar</keyword>
|
---|
[22ac237] | 26 | <keyword role="ftpdir">libxml2</keyword>
|
---|
[4f26c54] | 27 | </keywordset>
|
---|
[1515ed8a] | 28 | </sect1info>
|
---|
[8e75f8b9] | 29 |
|
---|
[437700ae] | 30 | <title>libxml2-&libxml2-version;</title>
|
---|
[8e75f8b9] | 31 |
|
---|
[1515ed8a] | 32 | <indexterm zone="libxml2">
|
---|
| 33 | <primary sortas="a-Libxml2">Libxml2</primary>
|
---|
| 34 | </indexterm>
|
---|
| 35 |
|
---|
| 36 | <sect2 role="package">
|
---|
[437700ae] | 37 | <title>Introduction to libxml2</title>
|
---|
[8e75f8b9] | 38 |
|
---|
[1515ed8a] | 39 | <para>The <application>libxml2</application> package contains
|
---|
| 40 | XML libraries. These are useful for parsing XML files.</para>
|
---|
[8e75f8b9] | 41 |
|
---|
[1515ed8a] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&libxml2-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&libxml2-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &libxml2-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &libxml2-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &libxml2-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &libxml2-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
[8e75f8b9] | 63 |
|
---|
[437700ae] | 64 | <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
|
---|
[8e75f8b9] | 65 |
|
---|
[3c985d94] | 66 | <bridgehead renderas="sect4">Optional (Required to Run the Full Suite of
|
---|
| 67 | Tests)</bridgehead>
|
---|
[4f26c54] | 68 | <para role="optional"><xref linkend="python"/> and
|
---|
| 69 | <xref linkend="wget"/></para>
|
---|
[8e75f8b9] | 70 |
|
---|
[03b3210] | 71 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[4f26c54] | 72 | <para role="optional"><xref linkend="libxslt"/> (used for the test suite
|
---|
| 73 | if found, but not required) and <xref linkend="python"/> (will install a
|
---|
[03b3210] | 74 | <application>Python</application> library module if found)</para>
|
---|
| 75 |
|
---|
[1aadfdf] | 76 | <note>
|
---|
| 77 | <para>Some packages which utilize
|
---|
| 78 | <application>libxml2</application> (such as
|
---|
| 79 | <application>GNOME Doc Utils</application>) need the
|
---|
| 80 | <application>Python</application> module installed to function
|
---|
| 81 | properly.</para>
|
---|
| 82 | </note>
|
---|
| 83 |
|
---|
[1039de3] | 84 | <para condition="html" role="usernotes">User Notes:
|
---|
| 85 | <ulink url="&blfs-wiki;/libxml2"/></para>
|
---|
| 86 |
|
---|
[1515ed8a] | 87 | </sect2>
|
---|
[8e75f8b9] | 88 |
|
---|
[1515ed8a] | 89 | <sect2 role="installation">
|
---|
[437700ae] | 90 | <title>Installation of libxml2</title>
|
---|
[1515ed8a] | 91 |
|
---|
[74390482] | 92 | <para>Install <application>libxml2</application> by running the following
|
---|
[1515ed8a] | 93 | commands:</para>
|
---|
| 94 |
|
---|
[f33cb079] | 95 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[1515ed8a] | 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[8e75f8b9] | 99 |
|
---|
[1515ed8a] | 100 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8e75f8b9] | 101 |
|
---|
[1515ed8a] | 102 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[8e75f8b9] | 103 |
|
---|
[1515ed8a] | 104 | </sect2>
|
---|
[8e75f8b9] | 105 |
|
---|
[1515ed8a] | 106 | <sect2 role="commands">
|
---|
| 107 | <title>Command Explanations</title>
|
---|
| 108 |
|
---|
[f33cb079] | 109 | <para><parameter>--with-history</parameter>: If this option is used, it
|
---|
[6473e74] | 110 | enables <application>readline</application> support when running
|
---|
[f33cb079] | 111 | xmlcatalog in shell mode.</para>
|
---|
| 112 |
|
---|
| 113 | <caution>
|
---|
[6473e74] | 114 | <para>When using history support, <command>make check</command> will
|
---|
| 115 | hang forever if either <filename>/etc/inputrc</filename> or
|
---|
| 116 | <filename>~/.inputrc</filename> has the option
|
---|
[f33cb079] | 117 | <option>show-all-if-ambiguous</option> turned on.</para>
|
---|
| 118 | </caution>
|
---|
[8e75f8b9] | 119 |
|
---|
[1515ed8a] | 120 | </sect2>
|
---|
[8e75f8b9] | 121 |
|
---|
[1515ed8a] | 122 | <sect2 role="content">
|
---|
| 123 | <title>Contents</title>
|
---|
| 124 |
|
---|
| 125 | <segmentedlist>
|
---|
| 126 | <segtitle>Installed Programs</segtitle>
|
---|
| 127 | <segtitle>Installed Libraries</segtitle>
|
---|
| 128 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 129 |
|
---|
[1515ed8a] | 130 | <seglistitem>
|
---|
| 131 | <seg>xml2-config, xmlcatalog, and xmllint</seg>
|
---|
[1039de3] | 132 | <seg>libxml2.{so,a} and optionally, the libxml2mod.{so,a}
|
---|
[1515ed8a] | 133 | <application>Python</application> module</seg>
|
---|
[437700ae] | 134 | <seg>/usr/include/libxml2, /usr/share/doc/libxml2-&libxml2-version;,
|
---|
| 135 | /usr/share/doc/libxml2-python-&libxml2-version; and
|
---|
| 136 | /usr/share/gtk-doc/html/libxml2</seg>
|
---|
[1515ed8a] | 137 | </seglistitem>
|
---|
| 138 | </segmentedlist>
|
---|
[8e75f8b9] | 139 |
|
---|
[1515ed8a] | 140 | <variablelist>
|
---|
| 141 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 142 | <?dbfo list-presentation="list"?>
|
---|
| 143 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 144 |
|
---|
[1515ed8a] | 145 | <varlistentry id="xml2-config">
|
---|
| 146 | <term><command>xml2-config</command></term>
|
---|
| 147 | <listitem>
|
---|
[74390482] | 148 | <para>determines the compile and linker flags that should be used to
|
---|
| 149 | compile and link programs that use
|
---|
[1515ed8a] | 150 | <filename class='libraryfile'>libxml2</filename>.</para>
|
---|
| 151 | <indexterm zone="libxml2 xml2-config">
|
---|
| 152 | <primary sortas="b-xml2-config">xml2-config</primary>
|
---|
| 153 | </indexterm>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
[8e75f8b9] | 156 |
|
---|
[1515ed8a] | 157 | <varlistentry id="xmlcatalog">
|
---|
| 158 | <term><command>xmlcatalog</command></term>
|
---|
| 159 | <listitem>
|
---|
[74390482] | 160 | <para>is used to monitor and manipulate XML
|
---|
[1515ed8a] | 161 | and SGML catalogs.</para>
|
---|
| 162 | <indexterm zone="libxml2 xmlcatalog">
|
---|
| 163 | <primary sortas="b-xmlcatalog">xmlcatalog</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
[8e75f8b9] | 167 |
|
---|
[1515ed8a] | 168 | <varlistentry id="xmllint">
|
---|
| 169 | <term><command>xmllint</command></term>
|
---|
| 170 | <listitem>
|
---|
[74390482] | 171 | <para>parses XML files and outputs reports (based
|
---|
[1515ed8a] | 172 | upon options) to detect errors in XML coding.</para>
|
---|
| 173 | <indexterm zone="libxml2 xmllint">
|
---|
| 174 | <primary sortas="b-xmllint">xmllint</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
[8e75f8b9] | 178 |
|
---|
[1515ed8a] | 179 | <varlistentry id="libxml2-lib">
|
---|
[1039de3] | 180 | <term><filename class='libraryfile'>libxml2.{so,a}</filename></term>
|
---|
[1515ed8a] | 181 | <listitem>
|
---|
[74390482] | 182 | <para> libraries provide the functions for programs to parse files
|
---|
[1515ed8a] | 183 | that use the XML format.</para>
|
---|
| 184 | <indexterm zone="libxml2 libxml2-lib">
|
---|
[1039de3] | 185 | <primary sortas="c-libxml2">libxml2.{so,a}</primary>
|
---|
[1515ed8a] | 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
[8e75f8b9] | 189 |
|
---|
[1515ed8a] | 190 | </variablelist>
|
---|
| 191 |
|
---|
| 192 | </sect2>
|
---|
[f45b1953] | 193 |
|
---|
| 194 | </sect1>
|
---|