source: general/genlib/libxml2.xml@ 808f2b85

12.1 12.2 gimp3 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since 808f2b85 was 808f2b85, checked in by Xi Ruoyao <xry111@…>, 11 months ago

Update to libxml2-2.11.5

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