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