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