source: general/genlib/libxml2.xml@ 726744f4

systemd-13485
Last change on this file since 726744f4 was 726744f4, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Move libdrm from X Libraries to General Libraries
Update to mesa-11.0.2
More LFS 7.8-systemd Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16506 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 "9e6a9aca9d155737868b3dc5fd82f788">
10 <!ENTITY libxml2-size "5.2 MB">
11 <!ENTITY libxml2-buildsize "77 MB (additional 18 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 condition="html" role="usernotes">
105 User Notes: <ulink url="&blfs-wiki;/libxml2"/>
106 </para>
107 </sect2>
108
109 <sect2 role="installation">
110 <title>Installation of libxml2</title>
111
112 <para>
113 Apply two upstream fixes, which correct bugs in
114 <command>xmlcatalog</command> and in the entity substitution
115 mechanism:
116 </para>
117
118<screen><userinput>sed \
119 -e /xmlInitializeCatalog/d \
120 -e 's/((ent->checked =.*&amp;&amp;/(((ent->checked == 0) ||\
121 ((ent->children == NULL) \&amp;\&amp; (ctxt->options \&amp; XML_PARSE_NOENT))) \&amp;\&amp;/' \
122 -i parser.c</userinput></screen>
123
124 <para>
125 Install <application>libxml2</application> by running the following
126 commands:
127 </para>
128
129<screen><userinput>./configure --prefix=/usr --disable-static --with-history &amp;&amp;
130make</userinput></screen>
131
132 <para>If you downloaded the testsuite, issue the following command:</para>
133
134<screen><userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput></screen>
135
136 <para>
137 To test the results, issue: <command>make check</command>.
138 </para>
139
140 <para>
141 Now, as the <systemitem class="username">root</systemitem> user:
142 </para>
143
144<screen role="root"><userinput>make install</userinput></screen>
145 </sect2>
146
147 <sect2 role="commands">
148 <title>Command Explanations</title>
149
150 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
151 href="../../xincludes/static-libraries.xml"/>
152
153 <para>
154 <parameter>--with-history</parameter>: This switch enables
155 <application>Readline</application> support when running
156 <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
157 </para>
158
159 <para>
160 <option>--with-python=/usr/bin/python3</option>: Add this switch if you
161 want libxml2 to use Python3 instead of Python2.
162 </para>
163
164 </sect2>
165
166 <sect2 role="content">
167 <title>Contents</title>
168
169 <segmentedlist>
170 <segtitle>Installed Programs</segtitle>
171 <segtitle>Installed Libraries</segtitle>
172 <segtitle>Installed Directories</segtitle>
173
174 <seglistitem>
175 <seg>
176 xml2-config, xmlcatalog and xmllint
177 </seg>
178 <seg>
179 libxml2.so and optionally, the libxml2mod.so
180 <application>Python</application> module
181 </seg>
182 <seg>
183 /usr/include/libxml2,
184 /usr/share/doc/libxml2-&libxml2-version;,
185 /usr/share/doc/libxml2-python-&libxml2-version; and
186 /usr/share/gtk-doc/html/libxml2
187 </seg>
188 </seglistitem>
189 </segmentedlist>
190
191 <variablelist>
192 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
193 <?dbfo list-presentation="list"?>
194 <?dbhtml list-presentation="table"?>
195
196 <varlistentry id="xml2-config">
197 <term><command>xml2-config</command></term>
198 <listitem>
199 <para>
200 determines the compile and linker flags that should be used to
201 compile and link programs that use
202 <filename class='libraryfile'>libxml2</filename>.
203 </para>
204 <indexterm zone="libxml2 xml2-config">
205 <primary sortas="b-xml2-config">xml2-config</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="xmlcatalog">
211 <term><command>xmlcatalog</command></term>
212 <listitem>
213 <para>
214 is used to monitor and manipulate XML and SGML catalogs.
215 </para>
216 <indexterm zone="libxml2 xmlcatalog">
217 <primary sortas="b-xmlcatalog">xmlcatalog</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="xmllint">
223 <term><command>xmllint</command></term>
224 <listitem>
225 <para>
226 parses XML files and outputs reports (based upon options) to detect
227 errors in XML coding.
228 </para>
229 <indexterm zone="libxml2 xmllint">
230 <primary sortas="b-xmllint">xmllint</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry id="libxml2-lib">
236 <term><filename class="libraryfile">libxml2.so</filename></term>
237 <listitem>
238 <para>
239 provides functions for programs to parse files that use the XML
240 format.
241 </para>
242 <indexterm zone="libxml2 libxml2-lib">
243 <primary sortas="c-libxml2">libxml2.so</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 </variablelist>
249
250 </sect2>
251
252</sect1>
Note: See TracBrowser for help on using the repository browser.