source: general/genlib/libxml2.xml@ dd00790

11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since dd00790 was dd00790, checked in by Xi Ruoyao <xry111@…>, 2 years ago

libxml2: --with-threads is the default

Multithreading is enabled by default in both 2.9.12 and 2.9.13.

  • Property mode set to 100644
File size: 9.8 KB
Line 
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 <!-- Also update the download, md5, size entities in libxml2py2.xml -->
8 <!ENTITY libxml2-download-http "http://xmlsoft.org/sources/libxml2-&libxml2-version;.tar.gz">
9 <!ENTITY libxml2-download-ftp "ftp://xmlsoft.org/libxml2/libxml2-&libxml2-version;.tar.gz">
10 <!ENTITY libxml2-md5sum "f433a39be087a9f0b197eb2307ad9f75">
11 <!ENTITY libxml2-size "5.4 MB">
12 <!ENTITY libxml2-buildsize "116 MB (with tests)">
13 <!ENTITY libxml2-time "0.4 SBU (with tests)">
14 <!ENTITY testsuite-version "20130923">
15]>
16
17<sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;">
18 <?dbhtml filename="libxml2.html"?>
19
20 <sect1info>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>libxml2-&libxml2-version;</title>
25
26 <indexterm zone="libxml2">
27 <primary sortas="a-libxml2">libxml2</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to libxml2</title>
32
33 <para>
34 The <application>libxml2</application> package contains libraries
35 and utilities used for parsing XML files.
36 </para>
37
38 &lfs111_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&libxml2-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&libxml2-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &libxml2-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &libxml2-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &libxml2-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &libxml2-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
75 <itemizedlist spacing="compact">
76 <listitem>
77 <para>
78 Optional Testsuite:
79 <ulink url="https://www.w3.org/XML/Test/xmlts&testsuite-version;.tar.gz"/> - This
80 enables <command>make check</command> to do complete testing.
81 </para>
82 </listitem>
83 </itemizedlist>
84
85 <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
86<!-- do not advertize python2 here, except in the note below
87 <bridgehead renderas="sect4">Optional</bridgehead>
88 <para role="optional">
89 <xref linkend="python2"/>
90 </para>
91-->
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional">
94 <xref linkend="icu"/> (see below) and
95 <xref linkend="valgrind"/> (may be used in the tests)
96 </para>
97
98 <note>
99 <para>
100 The old <application>Python2</application> module can be built after
101 <filename class="libraryfile">libxml2.so</filename> has been installed,
102 see <xref linkend="libxml2py2"/>.
103 </para>
104 </note>
105
106 <para condition="html" role="usernotes">
107 User Notes: <ulink url="&blfs-wiki;/libxml2"/>
108 </para>
109 </sect2>
110
111 <sect2 role="installation">
112 <title>Installation of libxml2</title>
113
114 <para>
115 Install <application>libxml2</application> by running the following
116 commands:
117 </para>
118
119<screen><userinput>./configure --prefix=/usr \
120 --disable-static \
121 --with-history \
122 --with-python=/usr/bin/python3 &amp;&amp;
123make</userinput></screen>
124
125 <para>
126 If you downloaded the testsuite, issue the following command:
127 </para>
128
129<screen><userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput></screen>
130
131 <para>
132 To test the results, issue: <command>make check &gt; check.log</command>.
133 A summary of the results can be obtained with <command>grep -E
134 '^Total|expected' check.log</command>. If <xref linkend="valgrind"/> is
135 installed and you want to check for memory leaks, replace
136 <command>check</command> with <command>check-valgrind</command>.
137 </para>
138
139 <note>
140 <para>
141 The tests use <ulink url="http://localhost/">http://localhost/</ulink>
142 to test parsing of external entities. If the machine where you run the
143 tests serves as a web site, the tests may hang, depending on the
144 content of the file served. It is therefore recommended to shut down
145 the server during the tests, as the <systemitem
146 class="username">root</systemitem> user:
147 </para>
148
149<screen role="nodump" revision="sysv"><userinput>/etc/init.d/httpd stop</userinput></screen>
150<screen role="nodump" revision="systemd"><userinput>systemctl stop httpd.service</userinput></screen>
151
152 </note>
153
154 <para>
155 Now, as the <systemitem class="username">root</systemitem> user:
156 </para>
157
158<screen role="root"><userinput>make install</userinput></screen>
159 </sect2>
160
161 <sect2 role="commands">
162 <title>Command Explanations</title>
163
164 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
165 href="../../xincludes/static-libraries.xml"/>
166
167 <para>
168 <parameter>--with-history</parameter>: This switch enables
169 <application>Readline</application> support when running
170 <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
171 </para>
172
173 <para>
174 <parameter>--with-python=/usr/bin/python3</parameter>: Allows building
175 the libxml2 module with Python3 instead of Python2.
176 </para>
177
178 <para>
179 <option>--with-icu</option>: Add this switch if you have built
180 <xref linkend="icu"/>, for better unicode support.
181 </para>
182
183 </sect2>
184
185 <sect2 role="content">
186 <title>Contents</title>
187
188 <segmentedlist>
189 <segtitle>Installed Programs</segtitle>
190 <segtitle>Installed Libraries</segtitle>
191 <segtitle>Installed Directories</segtitle>
192
193 <seglistitem>
194 <seg>
195 xml2-config,
196 xmlcatalog, and
197 xmllint <!--and the
198 drv_libxml2.py and libxml2.py <application>Python3</application>
199 modules. These are pythin modules, not programs -->
200 </seg>
201 <seg>
202 libxml2.so and
203 libxml2mod.so (<application>Python3</application> module)
204 </seg>
205 <seg>
206 /usr/include/libxml2,
207 /usr/lib/cmake/libxml2,
208 /usr/share/doc/libxml2-&libxml2-version;,
209 /usr/share/doc/libxml2-python-&libxml2-version;, and
210 /usr/share/gtk-doc/html/libxml2
211 </seg>
212 </seglistitem>
213 </segmentedlist>
214
215 <variablelist>
216 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
217 <?dbfo list-presentation="list"?>
218 <?dbhtml list-presentation="table"?>
219
220 <varlistentry id="xml2-config">
221 <term><command>xml2-config</command></term>
222 <listitem>
223 <para>
224 determines the compile and linker flags that should be used to
225 compile and link programs that use
226 <filename class="libraryfile">libxml2</filename>
227 </para>
228 <indexterm zone="libxml2 xml2-config">
229 <primary sortas="b-xml2-config">xml2-config</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="xmlcatalog">
235 <term><command>xmlcatalog</command></term>
236 <listitem>
237 <para>
238 is used to monitor and manipulate XML and SGML catalogs
239 </para>
240 <indexterm zone="libxml2 xmlcatalog">
241 <primary sortas="b-xmlcatalog">xmlcatalog</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="xmllint">
247 <term><command>xmllint</command></term>
248 <listitem>
249 <para>
250 parses XML files and outputs reports (based upon options) to detect
251 errors in XML coding
252 </para>
253 <indexterm zone="libxml2 xmllint">
254 <primary sortas="b-xmllint">xmllint</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258<!--
259 <varlistentry id="drv_libxml2.py3">
260 <term><command>drv_libxml2.py</command></term>
261 <listitem>
262 <para>
263 is a SAX <application>Python3</application> driver for libxml2.
264 </para>
265 <indexterm zone="libxml2 drv_libxml2.py3">
266 <primary sortas="b-drv_libxml2.py3">drv_libxml2.py for Python3</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="libxml2.py3">
272 <term><command>libxml2.py</command></term>
273 <listitem>
274 <para>
275 is the <application>Python3</application> binding for libxml2.
276 </para>
277 <indexterm zone="libxml2 libxml2.py3">
278 <primary sortas="b-libxml2.py3">libxml2.py for Python3</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282-->
283 <varlistentry id="libxml2-lib">
284 <term><filename class="libraryfile">libxml2.so</filename></term>
285 <listitem>
286 <para>
287 provides functions for programs to parse files that use the XML
288 format
289 </para>
290 <indexterm zone="libxml2 libxml2-lib">
291 <primary sortas="c-libxml2">libxml2.so</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="libxml2mod3">
297 <term><filename class="libraryfile">libxml2mod.so</filename></term>
298 <listitem>
299 <para>
300 is the interface for <application>Python3</application>
301 to use <filename class="libraryfile">libxml2.so</filename>
302 </para>
303 <indexterm zone="libxml2 libxml2mod3">
304 <primary sortas="c-libxml2mod">libxml2mod.so</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 </variablelist>
310
311 </sect2>
312
313</sect1>
Note: See TracBrowser for help on using the repository browser.