source: general/genlib/libxml2.xml@ ec91d9f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 8.0 8.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 nosym 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 ec91d9f was ec91d9f, checked in by Pierre Labastie <pieere@…>, 8 years ago

Update to Libxml2-2.9.3

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

  • Property mode set to 100644
File size: 7.7 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 "daece17e045f1c107610e137ab50c179">
10 <!ENTITY libxml2-size "5.2 MB">
11 <!ENTITY libxml2-buildsize "95 MB (additional 20 MB for tests)">
12 <!ENTITY libxml2-time "0.5 SBU (additional 0.2 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 &lfs78_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 </itemizedlist>
84
85 <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
86
87 <bridgehead renderas="sect4">Recommended</bridgehead>
88 <para role="recommended">
89 <xref linkend="python2"/> or <xref linkend="python3"/> (to build and install a
90 <application>Python</application> library module, additionally it is
91 required to run the full suite of tests)
92 </para>
93
94 <note>
95 <para>
96 Some packages which utilize <application>libxml2</application> (such as
97 <application>GNOME Doc Utils</application>) need the
98 <application>Python</application> module installed to function properly
99 and some packages will not build properly if the
100 <application>Python</application> module is not available.
101 </para>
102 </note>
103
104 <para role="optional">
105 <xref linkend="valgrind"/> (may be used in the tests)
106 </para>
107
108 <para condition="html" role="usernotes">
109 User Notes: <ulink url="&blfs-wiki;/libxml2"/>
110 </para>
111 </sect2>
112
113 <sect2 role="installation">
114 <title>Installation of libxml2</title>
115
116 <para>
117 Install <application>libxml2</application> by running the following
118 commands:
119 </para>
120
121<screen><userinput>./configure --prefix=/usr --disable-static --with-history &amp;&amp;
122make</userinput></screen>
123
124 <para>If you downloaded the testsuite, issue the following command:</para>
125
126<screen><userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput></screen>
127
128 <para>
129 To test the results, issue: <command>make check &gt;
130 ../check.log</command>. A summary of the results can be obtained with
131 <command>grep -E '^Total|expected' ../check.log</command>. If
132 <xref linkend="valgrind"/> is installed and you want to check memory
133 leaks, replace <command>check</command> with
134 <command>check-valgrind</command>.
135 </para>
136
137 <para>
138 Now, as the <systemitem class="username">root</systemitem> user:
139 </para>
140
141<screen role="root"><userinput>make install</userinput></screen>
142 </sect2>
143
144 <sect2 role="commands">
145 <title>Command Explanations</title>
146
147 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
148 href="../../xincludes/static-libraries.xml"/>
149
150 <para>
151 <parameter>--with-history</parameter>: This switch enables
152 <application>Readline</application> support when running
153 <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
154 </para>
155
156 <para>
157 <option>--with-python=/usr/bin/python3</option>: Add this switch if you
158 want libxml2 to use Python3 instead of Python2.
159 </para>
160
161 </sect2>
162
163 <sect2 role="content">
164 <title>Contents</title>
165
166 <segmentedlist>
167 <segtitle>Installed Programs</segtitle>
168 <segtitle>Installed Libraries</segtitle>
169 <segtitle>Installed Directories</segtitle>
170
171 <seglistitem>
172 <seg>
173 xml2-config, xmlcatalog and xmllint
174 </seg>
175 <seg>
176 libxml2.so and optionally, the libxml2mod.so
177 <application>Python</application> module
178 </seg>
179 <seg>
180 /usr/include/libxml2,
181 /usr/lib/cmake/libxml2,
182 /usr/share/doc/libxml2-&libxml2-version;,
183 /usr/share/doc/libxml2-python-&libxml2-version;, and
184 /usr/share/gtk-doc/html/libxml2
185 </seg>
186 </seglistitem>
187 </segmentedlist>
188
189 <variablelist>
190 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
191 <?dbfo list-presentation="list"?>
192 <?dbhtml list-presentation="table"?>
193
194 <varlistentry id="xml2-config">
195 <term><command>xml2-config</command></term>
196 <listitem>
197 <para>
198 determines the compile and linker flags that should be used to
199 compile and link programs that use
200 <filename class='libraryfile'>libxml2</filename>.
201 </para>
202 <indexterm zone="libxml2 xml2-config">
203 <primary sortas="b-xml2-config">xml2-config</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="xmlcatalog">
209 <term><command>xmlcatalog</command></term>
210 <listitem>
211 <para>
212 is used to monitor and manipulate XML and SGML catalogs.
213 </para>
214 <indexterm zone="libxml2 xmlcatalog">
215 <primary sortas="b-xmlcatalog">xmlcatalog</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="xmllint">
221 <term><command>xmllint</command></term>
222 <listitem>
223 <para>
224 parses XML files and outputs reports (based upon options) to detect
225 errors in XML coding.
226 </para>
227 <indexterm zone="libxml2 xmllint">
228 <primary sortas="b-xmllint">xmllint</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="libxml2-lib">
234 <term><filename class="libraryfile">libxml2.so</filename></term>
235 <listitem>
236 <para>
237 provides functions for programs to parse files that use the XML
238 format.
239 </para>
240 <indexterm zone="libxml2 libxml2-lib">
241 <primary sortas="c-libxml2">libxml2.so</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 </variablelist>
247
248 </sect2>
249
250</sect1>
Note: See TracBrowser for help on using the repository browser.