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