1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY libxml2-download-http
|
---|
8 | "http://xmlsoft.org/sources/libxml2-&libxml2-version;.tar.gz">
|
---|
9 | <!ENTITY libxml2-download-ftp
|
---|
10 | "ftp://xmlsoft.org/libxml2/libxml2-&libxml2-version;.tar.gz">
|
---|
11 | <!ENTITY libxml2-md5sum "c62106f02ee00b6437f0fb9d370c1093">
|
---|
12 | <!ENTITY libxml2-size "4.7 MB">
|
---|
13 | <!ENTITY libxml2-buildsize "89 MB">
|
---|
14 | <!ENTITY libxml2-time "0.7 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;">
|
---|
18 | <?dbhtml filename="libxml2.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>libxml2-&libxml2-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="libxml2">
|
---|
28 | <primary sortas="a-Libxml2">Libxml2</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to libxml2</title>
|
---|
33 |
|
---|
34 | <para>
|
---|
35 | The <application>libxml2</application> package contains XML libraries.
|
---|
36 | These are useful for parsing XML files.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs71_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>Download (HTTP): <ulink url="&libxml2-download-http;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download (FTP): <ulink url="&libxml2-download-ftp;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download MD5 sum: &libxml2-md5sum;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download size: &libxml2-size;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated disk space required: &libxml2-buildsize;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated build time: &libxml2-time;</para>
|
---|
60 | </listitem>
|
---|
61 | </itemizedlist>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
64 | <itemizedlist spacing='compact'>
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | Optional Testsuite:
|
---|
68 | <ulink url="http://www.w3.org/XML/Test/xmlts20080827.tar.gz"/> - This
|
---|
69 | enables <command>make check</command> to do complete testing.
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
77 | <para role="recommended">
|
---|
78 | <xref linkend="python2"/> (to build and install a
|
---|
79 | <application>Python</application> library module, additionally it is
|
---|
80 | required to run the full suite of tests)
|
---|
81 | </para>
|
---|
82 |
|
---|
83 | <note>
|
---|
84 | <para>
|
---|
85 | Some packages which utilize <application>libxml2</application> (such as
|
---|
86 | <application>GNOME Doc Utils</application>) need the
|
---|
87 | <application>Python</application> module installed to function properly
|
---|
88 | and some packages (such as GNOME Panel) will not build properly if the
|
---|
89 | <application>Python</application> module is not available.
|
---|
90 | </para>
|
---|
91 | </note>
|
---|
92 |
|
---|
93 | <para condition="html" role="usernotes">
|
---|
94 | User Notes: <ulink url="&blfs-wiki;/libxml2"/>
|
---|
95 | </para>
|
---|
96 | </sect2>
|
---|
97 |
|
---|
98 | <sect2 role="installation">
|
---|
99 | <title>Installation of libxml2</title>
|
---|
100 |
|
---|
101 | <para>If you downloaded the testsuite, issue the following command:</para>
|
---|
102 |
|
---|
103 | <screen><userinput>tar xf ../xmlts20080827.tar.gz</userinput></screen>
|
---|
104 |
|
---|
105 | <para>
|
---|
106 | Install <application>libxml2</application> by running the following
|
---|
107 | commands:
|
---|
108 | </para>
|
---|
109 |
|
---|
110 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
111 | make</userinput></screen>
|
---|
112 |
|
---|
113 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2 role="commands">
|
---|
123 | <title>Command Explanations</title>
|
---|
124 |
|
---|
125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
126 | href="../../xincludes/static-libraries.xml"/>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | <option>--with-history</option>: If this option is used, it enables
|
---|
130 | <application>Readline</application> support when running
|
---|
131 | <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
|
---|
132 | </para>
|
---|
133 | </sect2>
|
---|
134 |
|
---|
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>
|
---|
142 |
|
---|
143 | <seglistitem>
|
---|
144 | <seg>
|
---|
145 | xml2-config,
|
---|
146 | xmlcatalog and
|
---|
147 | xmllint
|
---|
148 | </seg>
|
---|
149 | <seg>
|
---|
150 | libxml2.so and optionally, the libxml2mod.so
|
---|
151 | <application>Python</application> module
|
---|
152 | </seg>
|
---|
153 | <seg>
|
---|
154 | /usr/include/libxml2,
|
---|
155 | /usr/share/doc/libxml2-&libxml2-version;,
|
---|
156 | /usr/share/doc/libxml2-python-&libxml2-version; and
|
---|
157 | /usr/share/gtk-doc/html/libxml2
|
---|
158 | </seg>
|
---|
159 | </seglistitem>
|
---|
160 | </segmentedlist>
|
---|
161 |
|
---|
162 | <variablelist>
|
---|
163 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
164 | <?dbfo list-presentation="list"?>
|
---|
165 | <?dbhtml list-presentation="table"?>
|
---|
166 |
|
---|
167 | <varlistentry id="xml2-config">
|
---|
168 | <term><command>xml2-config</command></term>
|
---|
169 | <listitem>
|
---|
170 | <para>
|
---|
171 | determines the compile and linker flags that should be used to
|
---|
172 | compile and link programs that use
|
---|
173 | <filename class='libraryfile'>libxml2</filename>.
|
---|
174 | </para>
|
---|
175 | <indexterm zone="libxml2 xml2-config">
|
---|
176 | <primary sortas="b-xml2-config">xml2-config</primary>
|
---|
177 | </indexterm>
|
---|
178 | </listitem>
|
---|
179 | </varlistentry>
|
---|
180 |
|
---|
181 | <varlistentry id="xmlcatalog">
|
---|
182 | <term><command>xmlcatalog</command></term>
|
---|
183 | <listitem>
|
---|
184 | <para>
|
---|
185 | is used to monitor and manipulate XML and SGML catalogs.
|
---|
186 | </para>
|
---|
187 | <indexterm zone="libxml2 xmlcatalog">
|
---|
188 | <primary sortas="b-xmlcatalog">xmlcatalog</primary>
|
---|
189 | </indexterm>
|
---|
190 | </listitem>
|
---|
191 | </varlistentry>
|
---|
192 |
|
---|
193 | <varlistentry id="xmllint">
|
---|
194 | <term><command>xmllint</command></term>
|
---|
195 | <listitem>
|
---|
196 | <para>
|
---|
197 | parses XML files and outputs reports (based upon options) to detect
|
---|
198 | errors in XML coding.
|
---|
199 | </para>
|
---|
200 | <indexterm zone="libxml2 xmllint">
|
---|
201 | <primary sortas="b-xmllint">xmllint</primary>
|
---|
202 | </indexterm>
|
---|
203 | </listitem>
|
---|
204 | </varlistentry>
|
---|
205 |
|
---|
206 | <varlistentry id="libxml2-lib">
|
---|
207 | <term><filename class='libraryfile'>libxml2.so</filename></term>
|
---|
208 | <listitem>
|
---|
209 | <para>
|
---|
210 | provides functions for programs to parse files that use the XML
|
---|
211 | format.
|
---|
212 | </para>
|
---|
213 | <indexterm zone="libxml2 libxml2-lib">
|
---|
214 | <primary sortas="c-libxml2">libxml2.so</primary>
|
---|
215 | </indexterm>
|
---|
216 | </listitem>
|
---|
217 | </varlistentry>
|
---|
218 | </variablelist>
|
---|
219 | </sect2>
|
---|
220 | </sect1>
|
---|