source: general/genlib/libxml2.xml@ dff94d4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since dff94d4 was dff94d4, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to feh-2.21.
Update to qt5-5.9.2 and qtwebengine-5.9.2.
Update to libxslt-1.1.31.
Update to libxml2-2.9.6.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19320 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.1 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 <!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 "dbae8327d8471941bf0472e273473e36">
10 <!ENTITY libxml2-size "5.2 MB">
11 <!ENTITY libxml2-buildsize "97 MB (add 30 MB for tests)">
12 <!ENTITY libxml2-time "0.4 SBU (add 0.3 SBU for tests)">
13 <!ENTITY testsuite-version "20130923">
14]>
15
16<sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;">
17 <?dbhtml filename="libxml2.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
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 &lfs81_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="http://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<!-- All CVEs seem to have been applied in 2.9.4
84 <listitem>
85 <para>
86 Required patch:
87 <ulink url="&patch-root;/libxml2-&libxml2-version;-security_fixes-1.patch"/>
88 </para>
89 </listitem>-->
90 </itemizedlist>
91
92 <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
93
94 <bridgehead renderas="sect4">Recommended</bridgehead>
95 <para role="recommended">
96 <xref linkend="python2"/> or <xref linkend="python3"/> (to build and
97 install a <application>Python</application> library module, additionally
98 it is required to run the full suite of tests)
99 <!-- As discovered by Bruce, itstool needs this module. -->
100 </para>
101
102 <note>
103 <para>
104 Some packages which utilize <application>libxml2</application> (such as
105 <application>GNOME Doc Utils</application>) need the
106 <application>Python</application> module installed to function properly
107 and some packages will not build properly if the
108 <application>Python</application> module is not available.
109 </para>
110 </note>
111
112 <bridgehead renderas="sect4">Optional</bridgehead>
113 <para role="optional">
114 <xref linkend="icu"/> and
115 <xref linkend="valgrind"/> (may be used in the tests)
116 </para>
117
118 <para condition="html" role="usernotes">
119 User Notes: <ulink url="&blfs-wiki;/libxml2"/>
120 </para>
121 </sect2>
122
123 <sect2 role="installation">
124 <title>Installation of libxml2</title>
125
126<!-- <para>
127 If you want to build the <application>Python</application> module for
128 <xref linkend="python3"/>, run:
129 </para>
130
131<screen><userinput>sed -i '/_PyVerify_fd/,+1d' python/types.c</userinput></screen>
132-->
133 <para>
134 Install <application>libxml2</application> by running the following
135 commands:
136 </para>
137
138<screen><userinput>./configure --prefix=/usr --disable-static --with-history &amp;&amp;
139make</userinput></screen>
140
141 <para>If you downloaded the testsuite, issue the following command:</para>
142
143<screen><userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput></screen>
144
145 <para>
146 To test the results, issue: <command>make check &gt; check.log</command>.
147 A summary of the results can be obtained with <command>grep -E
148 '^Total|expected' check.log</command>. If <xref linkend="valgrind"/> is
149 installed and you want to check memory leaks, replace
150 <command>check</command> with <command>check-valgrind</command>.
151 </para>
152
153 <note>
154 <para>
155 The tests use <ulink url="http://localhost/">http://localhost/</ulink>
156 to test parsing of external entities. If the machine where you run the
157 tests serves as a web site, the tests may hang, depending on the
158 content of the file served. It is therefore recommended to shut down
159 the server during the tests, as the <systemitem
160 class="username">root</systemitem> user:
161 </para>
162
163<screen role="nodump" revision="sysv"><userinput>/etc/init.d/httpd stop</userinput></screen>
164<screen role="nodump" revision="systemd"><userinput>systemctl stop httpd.service</userinput></screen>
165
166 </note>
167 <para>
168 Now, as the <systemitem class="username">root</systemitem> user:
169 </para>
170
171<screen role="root"><userinput>make install</userinput></screen>
172 </sect2>
173
174 <sect2 role="commands">
175 <title>Command Explanations</title>
176
177 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
178 href="../../xincludes/static-libraries.xml"/>
179
180 <para>
181 <parameter>--with-history</parameter>: This switch enables
182 <application>Readline</application> support when running
183 <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
184 </para>
185
186 <para>
187 <option>--with-python=/usr/bin/python3</option>: Add this switch if you
188 want libxml2 to use Python3 instead of Python2.
189 </para>
190
191 <para>
192 <option>--with-icu</option>: Add this switch if you have built
193 <xref linkend="icu"/>, for better unicode support.
194 </para>
195
196 <para>
197 <option>--with-threads</option>: Add this switch to enable multithread
198 support.
199 </para>
200
201 </sect2>
202
203 <sect2 role="content">
204 <title>Contents</title>
205
206 <segmentedlist>
207 <segtitle>Installed Programs</segtitle>
208 <segtitle>Installed Libraries</segtitle>
209 <segtitle>Installed Directories</segtitle>
210
211 <seglistitem>
212 <seg>
213 xml2-config, xmlcatalog and xmllint
214 </seg>
215 <seg>
216 libxml2.so and optionally, the libxml2mod.so
217 <application>Python</application> module
218 </seg>
219 <seg>
220 /usr/include/libxml2,
221 /usr/lib/cmake/libxml2,
222 /usr/share/doc/libxml2-&libxml2-version;,
223 /usr/share/doc/libxml2-python-&libxml2-version;, and
224 /usr/share/gtk-doc/html/libxml2
225 </seg>
226 </seglistitem>
227 </segmentedlist>
228
229 <variablelist>
230 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
231 <?dbfo list-presentation="list"?>
232 <?dbhtml list-presentation="table"?>
233
234 <varlistentry id="xml2-config">
235 <term><command>xml2-config</command></term>
236 <listitem>
237 <para>
238 determines the compile and linker flags that should be used to
239 compile and link programs that use
240 <filename class='libraryfile'>libxml2</filename>.
241 </para>
242 <indexterm zone="libxml2 xml2-config">
243 <primary sortas="b-xml2-config">xml2-config</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="xmlcatalog">
249 <term><command>xmlcatalog</command></term>
250 <listitem>
251 <para>
252 is used to monitor and manipulate XML and SGML catalogs.
253 </para>
254 <indexterm zone="libxml2 xmlcatalog">
255 <primary sortas="b-xmlcatalog">xmlcatalog</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="xmllint">
261 <term><command>xmllint</command></term>
262 <listitem>
263 <para>
264 parses XML files and outputs reports (based upon options) to detect
265 errors in XML coding.
266 </para>
267 <indexterm zone="libxml2 xmllint">
268 <primary sortas="b-xmllint">xmllint</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="libxml2-lib">
274 <term><filename class="libraryfile">libxml2.so</filename></term>
275 <listitem>
276 <para>
277 provides functions for programs to parse files that use the XML
278 format.
279 </para>
280 <indexterm zone="libxml2 libxml2-lib">
281 <primary sortas="c-libxml2">libxml2.so</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 </variablelist>
287
288 </sect2>
289
290</sect1>
Note: See TracBrowser for help on using the repository browser.