source: general/prog/perl-modules.xml@ 62c964d

10.0 10.1 11.0 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 62c964d was 62c964d, checked in by Randy McMurchy <randy@…>, 17 years ago

Added LWP, Date::Manip and Finance::Quote Perl modules (dependencies of GnuCash)

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3166 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.8 KB
Line 
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
16<sect2>
17<title>Introduction to <application>Perl</application> modules</title>
18
19<para>The <application>Perl</application> module packages add useful objects
20to the <application>Perl</application> language. Modules utilized by packages
21throughout <acronym>BLFS</acronym> are listed here, along with their
22dependencies. Most references to <application>Perl</application> modules are
23in the form of Module, Module::SubName or Module::Sub::Name, however
24occasionally you'll also see Module, Module-SubName or Module-Sub-Name. Most
25references on this page are in the latter form, as these are the official
26package names.</para>
27
28<sect3><title>The Module::Info module</title>
29<para>One module in particular is shown first, as this module's usefulness
30warrants installation, even though it won't be required by many other modules.
31The Module::Info module can tell you if a particular module is included in,
32or has been installed into your <application>Perl</application> installation.
33Additionally, the module can tell you what versions are installed and what
34dependencies are required for them. You can even use Module::Info to gather
35dependencies of uninstalled modules.</para>
36
37<itemizedlist spacing='compact'>
38<listitem><para><ulink
39url="http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-&Module-Info-version;.tar.gz">
40Module-Info-&Module-Info-version;</ulink></para>
41</listitem></itemizedlist>
42</sect3>
43
44<sect3><title><application>Perl</application> Module Packages</title>
45
46<itemizedlist><listitem><para><ulink
47url="http://www.cpan.org/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">
48Gtk-Perl-&Gtk-Perl-version;</ulink></para>
49
50<itemizedlist spacing='compact'><listitem><para><ulink
51url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">
52XML-Writer-&XML-Writer-version;</ulink></para>
53</listitem>
54
55<listitem><para><ulink
56url="http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">
57XML-Parser-&XML-Parser-version;</ulink></para>
58
59<itemizedlist spacing='compact'><listitem>
60<para><xref linkend="expat"/></para>
61</listitem></itemizedlist>
62</listitem>
63
64<listitem>
65<para><xref linkend="GTK"/></para>
66</listitem></itemizedlist>
67</listitem>
68
69<listitem><para><ulink
70url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">
71SGMLSpm-&SGMLSpm-version;</ulink></para>
72</listitem>
73
74<listitem><para><ulink
75url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">
76Tk-&Perl-Tk-version;</ulink></para>
77
78<itemizedlist spacing='compact'><listitem>
79<para><xref linkend="tk"/> and <xref linkend="libjpeg"/></para>
80</listitem></itemizedlist>
81</listitem>
82
83<listitem><para><ulink
84url="http://www.cpan.org/authors/id/C/CR/CREIN/Net-DNS-&Net-DNS-version;.tar.gz">
85Net-DNS-&Net-DNS-version;</ulink></para>
86
87<itemizedlist spacing='compact'><listitem><para><ulink
88url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-&Digest-HMAC-version;.tar.gz">
89Digest-HMAC-&Digest-HMAC-version;</ulink></para>
90
91<itemizedlist spacing='compact'><listitem><para><ulink
92url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-&Digest-SHA1-version;.tar.gz">
93Digest-SHA1-&Digest-SHA1-version;</ulink></para>
94</listitem></itemizedlist>
95</listitem></itemizedlist>
96</listitem>
97
98<listitem><para><ulink
99url="http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-&LWP-version;.tar.gz">
100LWP-&LWP-version;</ulink></para>
101
102<itemizedlist spacing='compact'><listitem><para><ulink
103url="http://www.cpan.org/authors/id/G/GA/GAAS/URI-&URI-version;.tar.gz">
104URI-&URI-version;</ulink></para>
105
106<itemizedlist spacing='compact'><listitem><para><ulink
107url="http://www.cpan.org/authors/id/B/BD/BDFOY/Business-ISBN-&Business-ISBN-version;.tar.gz">
108Business-ISBN-&Business-ISBN-version;</ulink> (Only used during the test
109suite)</para>
110
111<itemizedlist spacing='compact'><listitem><para><ulink
112url="http://www.cpan.org/authors/id/B/BD/BDFOY/Business-ISBN-Data-&Business-ISBN-Data-version;.tar.gz">
113Business-ISBN-Data-&Business-ISBN-Data-version;</ulink></para>
114
115<itemizedlist spacing='compact'><listitem><para><ulink
116url="http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Pod-&Test-Pod-version;.tar.gz">
117Test-Pod-&Test-Pod-version;</ulink></para>
118
119<itemizedlist spacing='compact'><listitem><para><ulink
120url="http://www.cpan.org/authors/id/S/SB/SBURKE/Pod-Simple-&Pod-Simple-version;.tar.gz">
121Pod-Simple-&Pod-Simple-version;</ulink></para>
122
123<itemizedlist spacing='compact'><listitem><para><ulink
124url="http://www.cpan.org/authors/id/S/SB/SBURKE/Pod-Escapes-&Pod-Escapes-version;.tar.gz">
125Pod-Escapes-&Pod-Escapes-version;</ulink></para>
126</listitem></itemizedlist>
127</listitem>
128
129<listitem><para><ulink
130url="http://www.cpan.org/authors/id/M/MA/MARKF/Test-Builder-Tester-&Test-Builder-Tester-version;.tar.gz">
131Test-Builder-Tester-&Test-Builder-Tester-version;</ulink></para>
132</listitem></itemizedlist>
133</listitem>
134
135<listitem><para><ulink
136url="http://www.cpan.org/authors/id/B/BD/BDFOY/Test-Prereq-&Test-Prereq-version;.tar.gz">
137Test-Prereq-&Test-Prereq-version;</ulink></para>
138
139<itemizedlist spacing='compact'><listitem><para><ulink
140url="http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-&Module-Info-version;.tar.gz">
141Module-Info-&Module-Info-version;</ulink></para>
142</listitem>
143
144<listitem><para><ulink
145url="http://www.cpan.org/authors/id/R/RC/RCLAMP/Module-CoreList-&Module-Corelist-version;.tar.gz">
146Module-CoreList-&Module-Corelist-version;</ulink></para>
147</listitem></itemizedlist>
148</listitem></itemizedlist>
149</listitem></itemizedlist>
150</listitem></itemizedlist>
151</listitem>
152
153<listitem><para><ulink
154url="http://www.cpan.org/authors/id/G/GA/GAAS/HTML-Parser-&HTML-Parser-version;.tar.gz">
155HTML-Parser-&HTML-Parser-version;</ulink></para>
156
157<itemizedlist spacing='compact'><listitem><para><ulink
158url="http://www.cpan.org/authors/id/S/SB/SBURKE/HTML-Tagset-&HTML-Tagset-version;.tar.gz">
159HTML-Tagset-&HTML-Tagset-version;</ulink></para>
160</listitem></itemizedlist>
161</listitem>
162
163<listitem><para><ulink
164url="http://www.cpan.org/authors/id/P/PM/PMQS/Compress-Zlib-&Compress-Zlib-version;.tar.gz">
165Compress-Zlib-&Compress-Zlib-version;</ulink></para>
166</listitem>
167
168<listitem><para><ulink
169url="http://www.cpan.org/authors/id/C/CH/CHAMAS/Crypt-SSLeay-&Crypt-SSLeay-version;.tar.gz">
170Crypt-SSLeay-&Crypt-SSLeay-version;</ulink></para>
171</listitem></itemizedlist>
172</listitem>
173
174<listitem><para><ulink
175url="http://www.cpan.org/authors/id/S/SB/SBECK/DateManip-&DateManip-version;.tar.gz">
176DateManip-&DateManip-version;</ulink></para>
177</listitem>
178
179<listitem><para><ulink
180url="http://www.cpan.org/authors/id/P/PJ/PJF/Finance-Quote-&Finance-Quote-version;.tar.gz">
181Finance-Quote-&Finance-Quote-version;</ulink></para>
182
183<itemizedlist spacing='compact'><listitem><para><ulink
184url="http://www.cpan.org/authors/id/M/MS/MSISK/HTML-TableExtract-&HTML-TableExtract-version;.tar.gz">
185HTML-TableExtract-&HTML-TableExtract-version;</ulink></para>
186</listitem></itemizedlist>
187</listitem></itemizedlist>
188</sect3>
189
190</sect2>
191
192<sect2>
193<title>Installation of <application>Perl</application> modules</title>
194
195<para>Install <application>Perl</application> modules by running the following
196commands:</para>
197
198<screen><userinput><command>perl Makefile.PL &amp;&amp;
199make &amp;&amp;
200make test &amp;&amp;
201make install</command></userinput></screen>
202
203<para>The modules listed below require modifications to the instructions in
204order to install successfully.</para>
205
206<sect3><title>Gtk-Perl-&Gtk-Perl-version;:</title>
207<screen><userinput><command>perl Makefile.PL --without-guessing &amp;&amp;
208make &amp;&amp;
209make test &amp;&amp;
210make install</command></userinput></screen>
211</sect3>
212
213<sect3><title>SGMLSpm-&SGMLSpm-version;</title>
214
215<para>If your system's <application>Perl</application> version is different
216than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
217command below to reflect the version you have installed.</para>
218
219<screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
220 -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
221 -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
222 Makefile &amp;&amp;
223make install &amp;&amp;
224install -d -m 755 /usr/share/doc/perl5 &amp;&amp;
225make install_html &amp;&amp;
226rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &amp;&amp;
227install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
228</sect3>
229
230</sect2>
231
232<sect2><title>(Alternate) Auto installation of <application>Perl</application>
233modules.</title>
234
235<para>There is an alternate way of installing the modules using
236<application>Perl</application>'s built-in <command>install</command> command.
237The command automatically downloads the source from the <acronym>CPAN</acronym>
238archive, extracts it, runs the commands mentioned above, and removes the build
239tree. You may still need to install dependent library packages before running
240the automated installation method.</para>
241
242<para>The first time you run this command, you'll be prompted to enter some
243information regarding download locations and methods. This information is
244retained in files located in <filename class='directory'>~/.cpan</filename>.
245Start the perl shell with the following command:</para>
246
247<screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
248
249<para>Each module may now be installed from this shell with the command:</para>
250
251<screen><userinput><command>install <replaceable>[ModuleName]</replaceable></command></userinput></screen>
252
253<para>For additional commands and help, type <command>help</command>.</para>
254
255</sect2>
256
257</sect1>
258
Note: See TracBrowser for help on using the repository browser.