source: general/prog/perl-modules.xml@ bd23186f

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 bd23186f was bd23186f, checked in by Randy McMurchy <randy@…>, 17 years ago

Moved the PDL Perl bundle to its own BLFS page

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

  • Property mode set to 100644
File size: 7.3 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">Module-Info-&Module-Info-version;</ulink>
40</para></listitem>
41</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></itemizedlist>
97</sect3>
98
99</sect2>
100
101<sect2>
102<title>Installation of <application>Perl</application> modules</title>
103
104<para>Install <application>Perl</application> modules by running the following
105commands:</para>
106
107<screen><userinput><command>perl Makefile.PL &amp;&amp;
108make &amp;&amp;
109make test &amp;&amp;
110make install</command></userinput></screen>
111
112<para>The modules listed below require modifications to the instructions in
113order to install successfully.</para>
114
115<sect3><title>Gtk-Perl-&Gtk-Perl-version;:</title>
116<screen><userinput><command>perl Makefile.PL --without-guessing &amp;&amp;
117make &amp;&amp;
118make test &amp;&amp;
119make install</command></userinput></screen>
120</sect3>
121
122<sect3><title>SGMLSpm-&SGMLSpm-version;</title>
123
124<para>If your system's <application>Perl</application> version is different
125than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
126command below to reflect the version you have installed.</para>
127
128<screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
129 -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
130 -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
131 Makefile &amp;&amp;
132make install &amp;&amp;
133install -d -m 755 /usr/share/doc/perl5 &amp;&amp;
134make install_html &amp;&amp;
135rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &amp;&amp;
136install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
137</sect3>
138
139</sect2>
140
141<sect2><title>(Alternate) Auto installation of <application>Perl</application>
142modules.</title>
143
144<para>There is an alternate way of installing the modules using
145<application>Perl</application>'s built-in <command>install</command> command.
146The command automatically downloads the source from the <acronym>CPAN</acronym>
147archive, extracts it, runs the commands mentioned above, and removes the build
148tree. You may still need to install dependent library packages before running
149the automated installation method.</para>
150
151<para>The first time you run this command, you'll be prompted to enter some
152information regarding download locations and methods. This information is
153retained in files located in <filename class='directory'>~/.cpan</filename>.
154Start the perl shell with the following command:</para>
155
156<screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
157<para>Each module may now be installed from this shell with the command:</para>
158<screen><userinput><command>install <replaceable>[ModuleName]</replaceable></command></userinput></screen>
159
160<para>For additional commands and help, type <command>help</command>.</para>
161
162</sect2>
163
164</sect1>
165
Note: See TracBrowser for help on using the repository browser.