1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY perl_modules_md5sums_download_http "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/M-P/Perl_Modules/Perl_Modules.gz.md5sums">
|
---|
8 | <!ENTITY perl_modules_md5sums_download_ftp "ftp://anduin.linuxfromscratch.org/BLFS/SVN/M-P/Perl_Modules/Perl_Modules.gz.md5sums">
|
---|
9 | ]>
|
---|
10 |
|
---|
11 | <sect1 id="perl-modules" xreflabel="Perl modules">
|
---|
12 | <sect1info>
|
---|
13 | <othername>$LastChangedBy$</othername>
|
---|
14 | <date>$Date$</date>
|
---|
15 | </sect1info>
|
---|
16 | <?dbhtml filename="perl-modules.html" ?>
|
---|
17 | <title><application>Perl</application> modules</title>
|
---|
18 | <indexterm zone="perl-modules">
|
---|
19 | <primary sortas="a-Perl-modules">Perl modules</primary></indexterm>
|
---|
20 |
|
---|
21 | <sect2>
|
---|
22 | <title>Introduction to <application>Perl</application> modules</title>
|
---|
23 |
|
---|
24 | <para>The <application>Perl</application> module packages add useful objects
|
---|
25 | to the <application>Perl</application> language. Modules utilized by packages
|
---|
26 | throughout <acronym>BLFS</acronym> are listed here, along with their
|
---|
27 | dependencies. Most references to <application>Perl</application> modules are
|
---|
28 | in the form of Module, Module::SubName or Module::Sub::Name, however
|
---|
29 | occasionally you'll also see Module, Module-SubName or Module-Sub-Name. Most
|
---|
30 | references on this page are in the latter form, as these are the official
|
---|
31 | package names.</para>
|
---|
32 |
|
---|
33 | <itemizedlist><listitem><para>Download MD5 sums (HTTP):
|
---|
34 | <ulink url="&perl_modules_md5sums_download_http;"/></para></listitem>
|
---|
35 | <listitem><para>Download MD5 sums (FTP):
|
---|
36 | <ulink url="&perl_modules_md5sums_download_ftp;"/></para></listitem>
|
---|
37 | </itemizedlist>
|
---|
38 |
|
---|
39 | <sect3 id="perl-module-info"><title>The Module::Info module</title>
|
---|
40 | <indexterm zone="perl-modules perl-module-info">
|
---|
41 | <primary sortas="g-Module-Info">Module::Info</primary></indexterm>
|
---|
42 |
|
---|
43 | <para>One module in particular is shown first, as this module's usefulness
|
---|
44 | warrants installation, even though it won't be required by many other modules.
|
---|
45 | The Module::Info module can tell you if a particular module is included in,
|
---|
46 | or has been installed into your <application>Perl</application> installation.
|
---|
47 | Additionally, the module can tell you what versions are installed and what
|
---|
48 | dependencies are required for them. You can even use Module::Info to gather
|
---|
49 | dependencies of uninstalled modules.</para>
|
---|
50 |
|
---|
51 | <itemizedlist spacing='compact'>
|
---|
52 | <listitem><para><ulink
|
---|
53 | url="http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-&Module-Info-version;.tar.gz">
|
---|
54 | Module-Info-&Module-Info-version;</ulink></para>
|
---|
55 | </listitem></itemizedlist>
|
---|
56 | </sect3>
|
---|
57 |
|
---|
58 | <sect3><title><application>Perl</application> Module Packages</title>
|
---|
59 |
|
---|
60 | <itemizedlist><listitem><para id="perl-gtk-perl"><ulink
|
---|
61 | url="http://www.cpan.org/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">
|
---|
62 | Gtk-Perl-&Gtk-Perl-version;</ulink></para>
|
---|
63 | <indexterm zone="perl-modules perl-gtk-perl">
|
---|
64 | <primary sortas="g-Gtk-Perl">Gtk::Perl</primary></indexterm>
|
---|
65 |
|
---|
66 | <itemizedlist spacing='compact'><listitem><para id="perl-xml-writer"><ulink
|
---|
67 | url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">
|
---|
68 | XML-Writer-&XML-Writer-version;</ulink></para>
|
---|
69 | <indexterm zone="perl-modules perl-xml-writer">
|
---|
70 | <primary sortas="g-XML-Writer">XML::Writer</primary></indexterm>
|
---|
71 | </listitem>
|
---|
72 |
|
---|
73 | <listitem><para id="perl-xml-parser"><ulink
|
---|
74 | url="http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">
|
---|
75 | XML-Parser-&XML-Parser-version;</ulink></para>
|
---|
76 | <indexterm zone="perl-modules perl-xml-parser">
|
---|
77 | <primary sortas="g-XML-Parser">XML::Parser</primary></indexterm>
|
---|
78 |
|
---|
79 | <itemizedlist spacing='compact'><listitem>
|
---|
80 | <para><xref linkend="expat"/></para>
|
---|
81 | </listitem></itemizedlist>
|
---|
82 | </listitem>
|
---|
83 |
|
---|
84 | <listitem>
|
---|
85 | <para><xref linkend="GTK"/></para>
|
---|
86 | </listitem></itemizedlist>
|
---|
87 | </listitem>
|
---|
88 |
|
---|
89 | <listitem><para id="perl-sgmlspm"><ulink
|
---|
90 | url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">
|
---|
91 | SGMLSpm-&SGMLSpm-version;</ulink></para>
|
---|
92 | <indexterm zone="perl-modules perl-sgmlspm">
|
---|
93 | <primary sortas="g-SGMLSpm">SGMLSpm</primary></indexterm>
|
---|
94 | </listitem>
|
---|
95 |
|
---|
96 | <listitem><para id="perl-perl-tk"><ulink
|
---|
97 | url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">
|
---|
98 | Tk-&Perl-Tk-version;</ulink></para>
|
---|
99 | <indexterm zone="perl-modules perl-perl-tk">
|
---|
100 | <primary sortas="g-Perl-Tk">Perl::Tk</primary></indexterm>
|
---|
101 |
|
---|
102 | <itemizedlist spacing='compact'><listitem>
|
---|
103 | <para><xref linkend="tk"/> and <xref linkend="libjpeg"/></para>
|
---|
104 | </listitem></itemizedlist>
|
---|
105 | </listitem>
|
---|
106 |
|
---|
107 | <listitem><para id="perl-net-dns"><ulink
|
---|
108 | url="http://www.cpan.org/authors/id/C/CR/CREIN/Net-DNS-&Net-DNS-version;.tar.gz">
|
---|
109 | Net-DNS-&Net-DNS-version;</ulink></para>
|
---|
110 | <indexterm zone="perl-modules perl-net-dns">
|
---|
111 | <primary sortas="g-Net-DNS">Net::DNS</primary></indexterm>
|
---|
112 |
|
---|
113 | <itemizedlist spacing='compact'><listitem><para id="perl-digest-hmac"><ulink
|
---|
114 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-&Digest-HMAC-version;.tar.gz">
|
---|
115 | Digest-HMAC-&Digest-HMAC-version;</ulink></para>
|
---|
116 | <indexterm zone="perl-modules perl-digest-hmac">
|
---|
117 | <primary sortas="g-Digest-HMAC">Digest::HMAC</primary></indexterm>
|
---|
118 |
|
---|
119 | <itemizedlist spacing='compact'><listitem><para id="perl-digest-sha1"><ulink
|
---|
120 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-&Digest-SHA1-version;.tar.gz">
|
---|
121 | Digest-SHA1-&Digest-SHA1-version;</ulink></para>
|
---|
122 | <indexterm zone="perl-modules perl-digest-sha1">
|
---|
123 | <primary sortas="g-Digest-SHA1">Digest::SHA1</primary></indexterm>
|
---|
124 | </listitem></itemizedlist>
|
---|
125 | </listitem></itemizedlist>
|
---|
126 | </listitem>
|
---|
127 |
|
---|
128 | <listitem><para id="perl-lwp"><ulink
|
---|
129 | url="http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-&LWP-version;.tar.gz">
|
---|
130 | LWP-&LWP-version;</ulink></para>
|
---|
131 | <indexterm zone="perl-modules perl-lwp">
|
---|
132 | <primary sortas="g-LWP">LWP</primary></indexterm>
|
---|
133 |
|
---|
134 | <itemizedlist spacing='compact'><listitem><para id="perl-uri"><ulink
|
---|
135 | url="http://www.cpan.org/authors/id/G/GA/GAAS/URI-&URI-version;.tar.gz">
|
---|
136 | URI-&URI-version;</ulink></para>
|
---|
137 | <indexterm zone="perl-modules perl-uri">
|
---|
138 | <primary sortas="g-URI">URI</primary></indexterm>
|
---|
139 |
|
---|
140 | <itemizedlist spacing='compact'><listitem><para id="perl-business-isbn"><ulink
|
---|
141 | url="http://www.cpan.org/authors/id/B/BD/BDFOY/Business-ISBN-&Business-ISBN-version;.tar.gz">
|
---|
142 | Business-ISBN-&Business-ISBN-version;</ulink> (Only used during the test
|
---|
143 | suite)</para>
|
---|
144 | <indexterm zone="perl-modules perl-business-isbn">
|
---|
145 | <primary sortas="g-Business-ISBN">Business::ISBN</primary></indexterm>
|
---|
146 |
|
---|
147 | <itemizedlist spacing='compact'><listitem><para id="perl-business-isbn-data"><ulink
|
---|
148 | url="http://www.cpan.org/authors/id/B/BD/BDFOY/Business-ISBN-Data-&Business-ISBN-Data-version;.tar.gz">
|
---|
149 | Business-ISBN-Data-&Business-ISBN-Data-version;</ulink></para>
|
---|
150 | <indexterm zone="perl-modules perl-business-isbn-data">
|
---|
151 | <primary sortas="g-Business-ISBN-Data">Business::ISBN::Data</primary></indexterm>
|
---|
152 |
|
---|
153 | <itemizedlist spacing='compact'><listitem><para id="perl-test-pod"><ulink
|
---|
154 | url="http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Pod-&Test-Pod-version;.tar.gz">
|
---|
155 | Test-Pod-&Test-Pod-version;</ulink></para>
|
---|
156 | <indexterm zone="perl-modules perl-test-pod">
|
---|
157 | <primary sortas="g-Test-Pod">Test::Pod</primary></indexterm>
|
---|
158 |
|
---|
159 | <itemizedlist spacing='compact'><listitem><para id="perl-pod-simple"><ulink
|
---|
160 | url="http://www.cpan.org/authors/id/S/SB/SBURKE/Pod-Simple-&Pod-Simple-version;.tar.gz">
|
---|
161 | Pod-Simple-&Pod-Simple-version;</ulink></para>
|
---|
162 | <indexterm zone="perl-modules perl-pod-simple">
|
---|
163 | <primary sortas="g-Pod-Simple">Pod::Simple</primary></indexterm>
|
---|
164 |
|
---|
165 | <itemizedlist spacing='compact'><listitem><para id="perl-pod-escapes"><ulink
|
---|
166 | url="http://www.cpan.org/authors/id/S/SB/SBURKE/Pod-Escapes-&Pod-Escapes-version;.tar.gz">
|
---|
167 | Pod-Escapes-&Pod-Escapes-version;</ulink></para>
|
---|
168 | <indexterm zone="perl-modules perl-pod-escapes">
|
---|
169 | <primary sortas="g-Pod-Escapes">Pod::Escapes</primary></indexterm>
|
---|
170 | </listitem></itemizedlist>
|
---|
171 | </listitem>
|
---|
172 |
|
---|
173 | <listitem><para id="perl-test-builder-tester"><ulink
|
---|
174 | url="http://www.cpan.org/authors/id/M/MA/MARKF/Test-Builder-Tester-&Test-Builder-Tester-version;.tar.gz">
|
---|
175 | Test-Builder-Tester-&Test-Builder-Tester-version;</ulink></para>
|
---|
176 | <indexterm zone="perl-modules perl-test-builder-tester">
|
---|
177 | <primary sortas="g-Test-Builder-Tester">Test::Builder::Tester</primary></indexterm>
|
---|
178 | </listitem></itemizedlist>
|
---|
179 | </listitem>
|
---|
180 |
|
---|
181 | <listitem><para id="perl-test-prereq"><ulink
|
---|
182 | url="http://www.cpan.org/authors/id/B/BD/BDFOY/Test-Prereq-&Test-Prereq-version;.tar.gz">
|
---|
183 | Test-Prereq-&Test-Prereq-version;</ulink></para>
|
---|
184 | <indexterm zone="perl-modules perl-test-prereq">
|
---|
185 | <primary sortas="g-Test-Prereq">Test::Prereq</primary></indexterm>
|
---|
186 |
|
---|
187 | <itemizedlist spacing='compact'><listitem><para><ulink
|
---|
188 | url="http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-&Module-Info-version;.tar.gz">
|
---|
189 | Module-Info-&Module-Info-version;</ulink></para>
|
---|
190 | </listitem>
|
---|
191 |
|
---|
192 | <listitem><para id="perl-module-corelist"><ulink
|
---|
193 | url="http://www.cpan.org/authors/id/R/RC/RCLAMP/Module-CoreList-&Module-Corelist-version;.tar.gz">
|
---|
194 | Module-CoreList-&Module-Corelist-version;</ulink></para>
|
---|
195 | <indexterm zone="perl-modules perl-module-corelist">
|
---|
196 | <primary sortas="g-Module-Corelist">Module::Corelist</primary></indexterm>
|
---|
197 | </listitem></itemizedlist>
|
---|
198 | </listitem></itemizedlist>
|
---|
199 | </listitem></itemizedlist>
|
---|
200 | </listitem></itemizedlist>
|
---|
201 | </listitem>
|
---|
202 |
|
---|
203 | <listitem><para id="perl-html-parser"><ulink
|
---|
204 | url="http://www.cpan.org/authors/id/G/GA/GAAS/HTML-Parser-&HTML-Parser-version;.tar.gz">
|
---|
205 | HTML-Parser-&HTML-Parser-version;</ulink></para>
|
---|
206 | <indexterm zone="perl-modules perl-html-parser">
|
---|
207 | <primary sortas="g-HTML-Parser">HTML::Parser</primary></indexterm>
|
---|
208 |
|
---|
209 | <itemizedlist spacing='compact'><listitem><para id="perl-html-tagset"><ulink
|
---|
210 | url="http://www.cpan.org/authors/id/S/SB/SBURKE/HTML-Tagset-&HTML-Tagset-version;.tar.gz">
|
---|
211 | HTML-Tagset-&HTML-Tagset-version;</ulink></para>
|
---|
212 | <indexterm zone="perl-modules perl-html-tagset">
|
---|
213 | <primary sortas="g-HTML-Tagset">HTML::Tagset</primary></indexterm>
|
---|
214 | </listitem></itemizedlist>
|
---|
215 | </listitem>
|
---|
216 |
|
---|
217 | <listitem><para id="perl-compress-zlib"><ulink
|
---|
218 | url="http://www.cpan.org/authors/id/P/PM/PMQS/Compress-Zlib-&Compress-Zlib-version;.tar.gz">
|
---|
219 | Compress-Zlib-&Compress-Zlib-version;</ulink></para>
|
---|
220 | <indexterm zone="perl-modules perl-compress-zlib">
|
---|
221 | <primary sortas="g-Compress-Zlib">Compress::Zlib</primary></indexterm>
|
---|
222 | </listitem>
|
---|
223 |
|
---|
224 | <listitem><para id="perl-crypt-ssleay"><ulink
|
---|
225 | url="http://www.cpan.org/authors/id/C/CH/CHAMAS/Crypt-SSLeay-&Crypt-SSLeay-version;.tar.gz">
|
---|
226 | Crypt-SSLeay-&Crypt-SSLeay-version;</ulink></para>
|
---|
227 | <indexterm zone="perl-modules perl-crypt-ssleay">
|
---|
228 | <primary sortas="g-Crypt-SSLeay">Crypt::SSLeay</primary></indexterm>
|
---|
229 | </listitem></itemizedlist>
|
---|
230 | </listitem>
|
---|
231 |
|
---|
232 | <listitem><para id="perl-datemanip"><ulink
|
---|
233 | url="http://www.cpan.org/authors/id/S/SB/SBECK/DateManip-&DateManip-version;.tar.gz">
|
---|
234 | DateManip-&DateManip-version;</ulink></para>
|
---|
235 | <indexterm zone="perl-modules perl-datemanip">
|
---|
236 | <primary sortas="g-DateManip">DateManip</primary></indexterm>
|
---|
237 | </listitem>
|
---|
238 |
|
---|
239 | <listitem><para id="perl-finance-quote"><ulink
|
---|
240 | url="http://www.cpan.org/authors/id/P/PJ/PJF/Finance-Quote-&Finance-Quote-version;.tar.gz">
|
---|
241 | Finance-Quote-&Finance-Quote-version;</ulink></para>
|
---|
242 | <indexterm zone="perl-modules perl-finance-quote">
|
---|
243 | <primary sortas="g-Finance-Quote">Finance::Quote</primary></indexterm>
|
---|
244 |
|
---|
245 | <itemizedlist spacing='compact'><listitem><para id="perl-html-tableextract"><ulink
|
---|
246 | url="http://www.cpan.org/authors/id/M/MS/MSISK/HTML-TableExtract-&HTML-TableExtract-version;.tar.gz">
|
---|
247 | HTML-TableExtract-&HTML-TableExtract-version;</ulink></para>
|
---|
248 | <indexterm zone="perl-modules perl-html-tableextract">
|
---|
249 | <primary sortas="g-HTML-TableExtract">HTML::TableExtract</primary></indexterm>
|
---|
250 | </listitem></itemizedlist>
|
---|
251 | </listitem></itemizedlist>
|
---|
252 | </sect3>
|
---|
253 |
|
---|
254 | </sect2>
|
---|
255 |
|
---|
256 | <sect2>
|
---|
257 | <title>Installation of <application>Perl</application> modules</title>
|
---|
258 |
|
---|
259 | <para>Install <application>Perl</application> modules by running the following
|
---|
260 | commands:</para>
|
---|
261 |
|
---|
262 | <screen><userinput><command>perl Makefile.PL &&
|
---|
263 | make &&
|
---|
264 | make test</command></userinput></screen>
|
---|
265 |
|
---|
266 | <para>Now, as the root user:</para>
|
---|
267 |
|
---|
268 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
269 |
|
---|
270 | <para>The modules listed below require modifications to the instructions in
|
---|
271 | order to install successfully.</para>
|
---|
272 |
|
---|
273 | <sect3><title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
---|
274 | <screen><userinput><command>perl Makefile.PL --without-guessing &&
|
---|
275 | make &&
|
---|
276 | make test</command></userinput></screen>
|
---|
277 |
|
---|
278 | <para>Now, as the root user:</para>
|
---|
279 |
|
---|
280 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
281 | </sect3>
|
---|
282 |
|
---|
283 | <sect3><title>SGMLSpm-&SGMLSpm-version;</title>
|
---|
284 |
|
---|
285 | <para>If your system's <application>Perl</application> version is different
|
---|
286 | than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
|
---|
287 | command below to reflect the version you have installed.</para>
|
---|
288 |
|
---|
289 | <screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
---|
290 | -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
|
---|
291 | -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
---|
292 | Makefile</command></userinput></screen>
|
---|
293 |
|
---|
294 | <para>Now, as the root user:</para>
|
---|
295 |
|
---|
296 | <screen><userinput role='root'><command>make install &&
|
---|
297 | install -v -d -m755 /usr/share/doc/perl5 &&
|
---|
298 | make install_html &&
|
---|
299 | rm -v -f /usr/share/doc/perl5/SGMLSpm/sample.pl &&
|
---|
300 | install -v -m644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
|
---|
301 | </sect3>
|
---|
302 |
|
---|
303 | </sect2>
|
---|
304 |
|
---|
305 | <sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
---|
306 | modules.</title>
|
---|
307 |
|
---|
308 | <para>There is an alternate way of installing the modules using
|
---|
309 | <application>Perl</application>'s built-in <command>install</command> command.
|
---|
310 | The command automatically downloads the source from the <acronym>CPAN</acronym>
|
---|
311 | archive, extracts it, runs the commands mentioned above, and removes the build
|
---|
312 | tree. You may still need to install dependent library packages before running
|
---|
313 | the automated installation method.</para>
|
---|
314 |
|
---|
315 | <para>The first time you run this command, you'll be prompted to enter some
|
---|
316 | information regarding download locations and methods. This information is
|
---|
317 | retained in files located in <filename class='directory'>~/.cpan</filename>.
|
---|
318 | Start the perl shell with the following command as the root user:</para>
|
---|
319 |
|
---|
320 | <screen><userinput role='root'><command>perl -MCPAN -e shell</command></userinput></screen>
|
---|
321 |
|
---|
322 | <para>Each module may now be installed from this shell with the command:</para>
|
---|
323 |
|
---|
324 | <screen><userinput role='root'><command>install <replaceable>[Module::Name]</replaceable></command></userinput></screen>
|
---|
325 |
|
---|
326 | <para>For additional commands and help, type <command>help</command>.</para>
|
---|
327 |
|
---|
328 | </sect2>
|
---|
329 |
|
---|
330 | </sect1>
|
---|
331 |
|
---|