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