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 | <!ENTITY LFS-Perl-version "5.8.5">
|
---|
8 | ]>
|
---|
9 |
|
---|
10 | <sect1 id="perl-modules" xreflabel="Perl modules">
|
---|
11 | <sect1info>
|
---|
12 | <othername>$LastChangedBy$</othername>
|
---|
13 | <date>$Date$</date>
|
---|
14 | </sect1info>
|
---|
15 | <?dbhtml filename="perl-modules.html" ?>
|
---|
16 | <title>Perl modules</title>
|
---|
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.</para>
|
---|
25 |
|
---|
26 | <sect3><title><application>Perl</application> Module Packages</title>
|
---|
27 | <itemizedlist spacing='compact'>
|
---|
28 | <listitem><para><ulink
|
---|
29 | url="http://search.cpan.org/CPAN/authors/id/C/CS/CSOE/PDL-&PDL-version;.tar.gz">PDL-&PDL-version;</ulink>
|
---|
30 | </para>
|
---|
31 |
|
---|
32 | <itemizedlist spacing='compact'>
|
---|
33 | <listitem><para><ulink
|
---|
34 | url="http://www.cpan.org/authors/id/K/KG/KGB/ExtUtils-F77-&ExtUtils-F77-version;.tar.gz">ExtUtils-F77-&ExtUtils-F77-version;</ulink>
|
---|
35 | </para></listitem>
|
---|
36 |
|
---|
37 | <listitem><para><ulink
|
---|
38 | url="http://www.cpan.org/authors/id/I/IN/INGY/Inline-&Inline-version;.tar.gz">Inline-&Inline-version;</ulink>
|
---|
39 | </para>
|
---|
40 |
|
---|
41 | <itemizedlist spacing='compact'>
|
---|
42 | <listitem><para><ulink
|
---|
43 | url="http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-&Parse-RecDescent-version;.tar.gz">Parse-RecDescent-&Parse-RecDescent-version;</ulink>
|
---|
44 | </para></listitem>
|
---|
45 | </itemizedlist></listitem>
|
---|
46 |
|
---|
47 | <listitem><para><ulink
|
---|
48 | url="http://search.cpan.org/CPAN/authors/id/A/AA/AALLAN/Astro-FITS-Header-&Astro-FITS-Header-version;.tar.gz">Astro-FITS-Header-&Astro-FITS-Header-version;</ulink>
|
---|
49 | </para></listitem>
|
---|
50 | </itemizedlist></listitem>
|
---|
51 |
|
---|
52 | <listitem><para><ulink
|
---|
53 | url="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">Gtk-Perl-&Gtk-Perl-version;</ulink>
|
---|
54 | </para>
|
---|
55 |
|
---|
56 | <itemizedlist spacing='compact'>
|
---|
57 | <listitem><para><ulink
|
---|
58 | url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">XML-Writer-&XML-Writer-version;</ulink>
|
---|
59 | </para></listitem>
|
---|
60 |
|
---|
61 | <listitem><para><ulink
|
---|
62 | url="http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">XML-Parser-&XML-Parser-version;</ulink>
|
---|
63 | </para>
|
---|
64 |
|
---|
65 | <itemizedlist spacing='compact'>
|
---|
66 | <listitem><para><xref linkend="expat"/></para></listitem>
|
---|
67 | </itemizedlist></listitem>
|
---|
68 |
|
---|
69 | <listitem><para><xref linkend="GTK"/></para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist></listitem>
|
---|
72 |
|
---|
73 | <listitem><para><ulink
|
---|
74 | url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">SGMLSpm-&SGMLSpm-version;</ulink>
|
---|
75 | </para></listitem>
|
---|
76 |
|
---|
77 | <listitem><para><ulink
|
---|
78 | url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">Tk-&Perl-Tk-version;</ulink>
|
---|
79 | </para>
|
---|
80 |
|
---|
81 | <itemizedlist spacing='compact'>
|
---|
82 | <listitem><para><xref linkend="tk"/> and
|
---|
83 | <xref linkend="libjpeg"/></para></listitem>
|
---|
84 | </itemizedlist></listitem>
|
---|
85 |
|
---|
86 | <listitem><para><ulink
|
---|
87 | url="http://www.cpan.org/authors/id/C/CR/CREIN/Net-DNS-&Net-DNS-version;.tar.gz">Net-DNS-&Net-DNS-version;</ulink>
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | <itemizedlist spacing='compact'>
|
---|
91 | <listitem><para><ulink
|
---|
92 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-MD5-&Digest-MD5-version;.tar.gz">Digest-MD5-&Digest-MD5-version;</ulink>
|
---|
93 | </para></listitem>
|
---|
94 |
|
---|
95 | <listitem><para><ulink
|
---|
96 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-&Digest-HMAC-version;.tar.gz">Digest-HMAC-&Digest-HMAC-version;</ulink>
|
---|
97 | </para>
|
---|
98 |
|
---|
99 | <itemizedlist spacing='compact'>
|
---|
100 | <listitem><para><ulink
|
---|
101 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-&Digest-SHA1-version;.tar.gz">Digest-SHA1-&Digest-SHA1-version;</ulink>
|
---|
102 | </para></listitem></itemizedlist>
|
---|
103 | </listitem></itemizedlist>
|
---|
104 | </listitem></itemizedlist>
|
---|
105 |
|
---|
106 | </sect3>
|
---|
107 |
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <sect2>
|
---|
111 | <title>Installation of <application>Perl</application> modules</title>
|
---|
112 |
|
---|
113 | <para>Install <application>Perl</application> modules by running the following
|
---|
114 | commands:</para>
|
---|
115 |
|
---|
116 | <screen><userinput><command>perl Makefile.PL &&
|
---|
117 | make &&
|
---|
118 | make test &&
|
---|
119 | make install</command></userinput></screen>
|
---|
120 |
|
---|
121 | <para>The modules listed below require modifications to the instructions in
|
---|
122 | order to install successfully.</para>
|
---|
123 |
|
---|
124 | <sect3>
|
---|
125 | <title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
---|
126 |
|
---|
127 | <screen><userinput><command>perl Makefile.PL --without-guessing &&
|
---|
128 | make &&
|
---|
129 | make test &&
|
---|
130 | make install</command></userinput></screen></sect3>
|
---|
131 |
|
---|
132 | <sect3>
|
---|
133 | <title>SGMLSpm-&SGMLSpm-version;</title>
|
---|
134 |
|
---|
135 | <para>If your system's <application>Perl</application> version is different
|
---|
136 | than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
|
---|
137 | command below to reflect the version you have installed.</para>
|
---|
138 |
|
---|
139 | <screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
---|
140 | -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
|
---|
141 | -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
---|
142 | Makefile &&
|
---|
143 | make install &&
|
---|
144 | install -d -m 755 /usr/share/doc/perl5 &&
|
---|
145 | make install_html &&
|
---|
146 | rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &&
|
---|
147 | install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
|
---|
148 | </sect3>
|
---|
149 |
|
---|
150 | </sect2>
|
---|
151 |
|
---|
152 | <sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
---|
153 | modules.</title>
|
---|
154 |
|
---|
155 | <para>There is an alternate way of installing the modules using
|
---|
156 | <application>Perl</application>'s built-in <command>install</command> command.
|
---|
157 | The command automatically downloads the source from the <acronym>CPAN</acronym>
|
---|
158 | archive, extracts it, runs the commands mentioned above, and removes
|
---|
159 | the build tree.</para>
|
---|
160 |
|
---|
161 | <para>Start the perl shell with the commands:</para>
|
---|
162 |
|
---|
163 | <screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
|
---|
164 | <para>Each module may now be installed from this shell with the command:</para>
|
---|
165 | <screen><userinput><command>install <moduleName></command></userinput></screen>
|
---|
166 |
|
---|
167 | <para>For additional commands and help, type <command>help</command>.</para>
|
---|
168 |
|
---|
169 | </sect2>
|
---|
170 |
|
---|
171 | </sect1>
|
---|
172 |
|
---|