Rev 7024 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5853 | myou72 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
4738 | myou72 | 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 | <!ENTITY libxml2-download-http "http://xmlsoft.org/sources/libxml2-&libxml2-version;.tar.gz"> |
||
7 | <!ENTITY libxml2-download-ftp "ftp://xmlsoft.org/libxml2/libxml2-&libxml2-version;.tar.gz"> |
||
7017 | myou72 | 8 | <!ENTITY libxml2-md5sum "daece17e045f1c107610e137ab50c179"> |
6610 | myou72 | 9 | <!ENTITY libxml2-size "5.2 Mo"> |
7017 | myou72 | 10 | <!ENTITY libxml2-buildsize "95 Mo (additional 20 Mo for tests)"> |
6610 | myou72 | 11 | <!ENTITY libxml2-time "0.5 SBU (additional 0.2 SBU for tests)"> |
4738 | myou72 | 12 | <!ENTITY testsuite-version "20130923"> |
13 | ]> |
||
130 | guillaume | 14 | <sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;"> |
4738 | myou72 | 15 | <?dbhtml filename="libxml2.html"?> |
16 | <sect1info> |
||
17 | <othername>$LastChangedBy : bdubbs $</othername> |
||
18 | <date>$Date : 2013-03-04 19:52:20 +0100 (Mon, 04 Mar 2013) $</date> |
||
19 | </sect1info> |
||
20 | <title>libxml2-&libxml2-version;</title> |
||
21 | <indexterm zone="libxml2"> |
||
22 | <primary sortas="a-Libxml2">Libxml2</primary> |
||
23 | </indexterm> |
||
24 | <sect2 role="package"> |
||
5853 | myou72 | 25 | <title>Introduction à libxml2</title> |
4738 | myou72 | 26 | <para>Le paquet <application>libxml2</application> contient |
5853 | myou72 | 27 | des bibliothèques et des utilitaires utilisés pour analyser des fichiers XML.</para> |
6976 | myou72 | 28 | &lfs78_checked; |
4738 | myou72 | 29 | <bridgehead renderas="sect3">Informations sur le paquet</bridgehead> |
30 | <itemizedlist spacing="compact"> |
||
31 | <listitem> |
||
5853 | myou72 | 32 | <para>Téléchargement (HTTP) : <ulink url="&libxml2-download-http;"/></para> |
4738 | myou72 | 33 | </listitem> |
34 | <listitem> |
||
5853 | myou72 | 35 | <para>Téléchargement (FTP) : <ulink url="&libxml2-download-ftp;"/></para> |
4738 | myou72 | 36 | </listitem> |
37 | <listitem> |
||
5853 | myou72 | 38 | <para>Somme de contrôle MD5 du téléchargement : &libxml2-md5sum;</para> |
4738 | myou72 | 39 | </listitem> |
40 | <listitem> |
||
5853 | myou72 | 41 | <para>Taille du téléchargement : &libxml2-size;</para> |
4738 | myou72 | 42 | </listitem> |
43 | <listitem> |
||
44 | <para>Estimation de l'espace disque requis : &libxml2-buildsize;</para> |
||
45 | </listitem> |
||
46 | <listitem> |
||
47 | <para>Estimation du temps de construction : &libxml2-time;</para> |
||
48 | </listitem> |
||
49 | </itemizedlist> |
||
5853 | myou72 | 50 | <bridgehead renderas="sect3">Téléchargements supplémentaires</bridgehead> |
4738 | myou72 | 51 | <itemizedlist spacing="compact"> |
52 | <listitem> |
||
7011 | myou72 | 53 | <para>Suite de tests facultative : |
5853 | myou72 | 54 | <ulink url="http://www.w3.org/XML/Test/xmlts&testsuite-version;.tar.gz"/> - Ceci permet à |
4738 | myou72 | 55 | <command>make check</command> de faire un test complet.</para> |
56 | </listitem> |
||
57 | </itemizedlist> |
||
5853 | myou72 | 58 | <bridgehead renderas="sect3">Dépendances de libxml2</bridgehead> |
59 | <bridgehead renderas="sect4">Recommandées</bridgehead> |
||
6731 | myou72 | 60 | <para role="optional"><xref linkend="python2"/> ou <xref linkend="python3"/> (pour construire et installer un module de |
5853 | myou72 | 61 | bibliothèque <application>Python</application>, au surplus elle est exigée pour lancer |
62 | la suite de tests complète)</para> |
||
4738 | myou72 | 63 | <note> |
7011 | myou72 | 64 | <para>Certains paquets qui utilisent |
4738 | myou72 | 65 | <application>libxml2</application> (tels que |
66 | <application>GNOME Doc Utils</application>) ont besoin que le module |
||
5853 | myou72 | 67 | <application>Python</application> soit installé pour fonctionner correctement et |
6527 | myou72 | 68 | certains paquets ne se construiront pas correctement si |
4738 | myou72 | 69 | le module <application>Python</application> n'est pas |
70 | disponible.</para> |
||
71 | </note> |
||
7018 | myou72 | 72 | <para role="optional"> |
73 | <xref linkend="valgrind"/> (peut être utilisé dans les tests) |
||
74 | </para> |
||
4738 | myou72 | 75 | <para condition="html" role="usernotes">Notes utilisateur : |
76 | <ulink url="&blfs-wiki;/libxml2"/></para> |
||
77 | </sect2> |
||
78 | <sect2 role="installation"> |
||
79 | <title>Installation de libxml2</title> |
||
5853 | myou72 | 80 | <para>Installez <application>libxml2</application> en lançant les commandes |
4738 | myou72 | 81 | suivantes :</para> |
82 | <screen> |
||
83 | <userinput>./configure --prefix=/usr --disable-static --with-history && |
||
84 | make</userinput> |
||
85 | </screen> |
||
6601 | myou72 | 86 | <para>Si vous avez téléchargé la suite de tests, exécutez la commande suivante :</para> |
87 | <screen> |
||
88 | <userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput> |
||
89 | </screen> |
||
7018 | myou72 | 90 | <para>Pour tester les résultats, lancez : <command>make check > check.log</command>. |
91 | Un résumé des résultats peut être obtenu avec <command>grep -E '^Total|expected' ../check.log</command>. |
||
92 | Si <xref linkend="valgrind"/> est installé et que vous voulez tester l'empreinte mémoire, remplacez |
||
93 | <command>check</command> par <command>check-valgrind</command>. |
||
4738 | myou72 | 94 | </para> |
95 | <para>Maintenant, en tant qu'utilisateur <systemitem class="username">root</systemitem> :</para> |
||
96 | <screen role="root"> |
||
97 | <userinput>make install</userinput> |
||
98 | </screen> |
||
99 | </sect2> |
||
100 | <sect2 role="commands"> |
||
101 | <title>Explication des commandes</title> |
||
102 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" |
||
103 | href="../../xincludes/static-libraries.xml"/> |
||
104 | <para> |
||
6731 | myou72 | 105 | <parameter>--with-history</parameter>: Ce paramètre active le support de |
7011 | myou72 | 106 | <application>Readline</application> quand |
5853 | myou72 | 107 | <command>xmlcatalog</command> ou <command>xmllint</command> sont lancés en mode shell. |
4738 | myou72 | 108 | </para> |
6731 | myou72 | 109 | <para> |
7011 | myou72 | 110 | <option>--with-python=/usr/bin/python3</option>: Ajoutez ce paramètre si vous voulez que |
6731 | myou72 | 111 | libxml2 utilise Python3 au lieu de Python2. |
112 | </para> |
||
4738 | myou72 | 113 | </sect2> |
114 | <sect2 role="content"> |
||
115 | <title>Contenu</title> |
||
116 | <segmentedlist> |
||
5853 | myou72 | 117 | <segtitle>Programmes installés</segtitle> |
118 | <segtitle>Bibliothèques installées</segtitle> |
||
119 | <segtitle>Répertoires installés</segtitle> |
||
4738 | myou72 | 120 | <seglistitem> |
121 | <seg> |
||
122 | xml2-config, |
||
123 | xmlcatalog et |
||
124 | xmllint |
||
125 | </seg> |
||
126 | <seg> |
||
127 | libxml2.so et facultativement le module <application>Python</application> libxml2mod.so |
||
128 | </seg> |
||
129 | <seg> |
||
130 | /usr/include/libxml2, |
||
7018 | myou72 | 131 | /usr/lib/cmake/libxml2, |
4738 | myou72 | 132 | /usr/share/doc/libxml2-&libxml2-version;, |
133 | /usr/share/doc/libxml2-python-&libxml2-version; et |
||
134 | /usr/share/gtk-doc/html/libxml2 |
||
135 | </seg> |
||
136 | </seglistitem> |
||
137 | </segmentedlist> |
||
138 | <variablelist> |
||
139 | <bridgehead renderas="sect3">Descriptions courtes</bridgehead> |
||
140 | <?dbfo list-presentation="list"?> |
||
141 | <?dbhtml list-presentation="table"?> |
||
142 | <varlistentry id="xml2-config"> |
||
143 | <term><command>xml2-config</command></term> |
||
144 | <listitem> |
||
5853 | myou72 | 145 | <para>détermine les drapeaux du compilateur et de l'éditeur de liens qui devraient être |
7054 | myou72 | 146 | utilisés pour compiler et lier les programmes qui utilisent |
4738 | myou72 | 147 | <filename class="libraryfile">libxml2</filename>.</para> |
148 | <indexterm zone="libxml2 xml2-config"> |
||
149 | <primary sortas="b-xml2-config">xml2-config</primary> |
||
150 | </indexterm> |
||
151 | </listitem> |
||
152 | </varlistentry> |
||
153 | <varlistentry id="xmlcatalog"> |
||
154 | <term><command>xmlcatalog</command></term> |
||
155 | <listitem> |
||
5853 | myou72 | 156 | <para>est utilisé pour gérer et manipuler des catalogues |
4738 | myou72 | 157 | XML et SGML.</para> |
158 | <indexterm zone="libxml2 xmlcatalog"> |
||
159 | <primary sortas="b-xmlcatalog">xmlcatalog</primary> |
||
160 | </indexterm> |
||
161 | </listitem> |
||
162 | </varlistentry> |
||
163 | <varlistentry id="xmllint"> |
||
164 | <term><command>xmllint</command></term> |
||
165 | <listitem> |
||
166 | <para>analyse des fichiers XML et affiche les rapports |
||
5853 | myou72 | 167 | (basés sur les options ci-dessus) pour détecter les erreurs dans le code |
4738 | myou72 | 168 | XML.</para> |
169 | <indexterm zone="libxml2 xmllint"> |
||
170 | <primary sortas="b-xmllint">xmllint</primary> |
||
171 | </indexterm> |
||
172 | </listitem> |
||
173 | </varlistentry> |
||
174 | <varlistentry id="libxml2-lib"> |
||
175 | <term><filename class='libraryfile'>libxml2.so</filename></term> |
||
176 | <listitem> |
||
177 | <para>fournit des fonctions aux programmes pour |
||
178 | analyser des fichiers qui utilisent le format XML.</para> |
||
179 | <indexterm zone="libxml2 libxml2-lib"> |
||
180 | <primary sortas="c-libxml2">libxml2.so</primary> |
||
181 | </indexterm> |
||
182 | </listitem> |
||
183 | </varlistentry> |
||
184 | </variablelist> |
||
185 | </sect2> |
||
130 | guillaume | 186 | </sect1> |