[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>
|
---|
[7fc4452] | 15 | <indexterm zone="perl-modules">
|
---|
| 16 | <primary sortas="a-Perl-modules">Perl modules</primary></indexterm>
|
---|
[3d60760] | 17 |
|
---|
[52d29f7] | 18 | <sect2>
|
---|
| 19 | <title>Introduction to <application>Perl</application> modules</title>
|
---|
| 20 |
|
---|
[30e1539] | 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
|
---|
[bd23186f] | 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 |
|
---|
[7fc4452] | 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 |
|
---|
[bd23186f] | 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>
|
---|
[cebbbb5] | 41 |
|
---|
[30e1539] | 42 | <itemizedlist spacing='compact'>
|
---|
| 43 | <listitem><para><ulink
|
---|
[62c964d] | 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>
|
---|
[bd23186f] | 47 | </sect3>
|
---|
[cebbbb5] | 48 |
|
---|
[bd23186f] | 49 | <sect3><title><application>Perl</application> Module Packages</title>
|
---|
[52d29f7] | 50 |
|
---|
[7fc4452] | 51 | <itemizedlist><listitem><para id="perl-gtk-perl"><ulink
|
---|
[bd23186f] | 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>
|
---|
[7fc4452] | 54 | <indexterm zone="perl-modules perl-gtk-perl">
|
---|
| 55 | <primary sortas="g-Gtk-Perl">Gtk::Perl</primary></indexterm>
|
---|
[52d29f7] | 56 |
|
---|
[7fc4452] | 57 | <itemizedlist spacing='compact'><listitem><para id="perl-xml-writer"><ulink
|
---|
[bd23186f] | 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>
|
---|
[7fc4452] | 60 | <indexterm zone="perl-modules perl-xml-writer">
|
---|
| 61 | <primary sortas="g-XML-Writer">XML::Writer</primary></indexterm>
|
---|
[bd23186f] | 62 | </listitem>
|
---|
[52d29f7] | 63 |
|
---|
[7fc4452] | 64 | <listitem><para id="perl-xml-parser"><ulink
|
---|
[bd23186f] | 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>
|
---|
[7fc4452] | 67 | <indexterm zone="perl-modules perl-xml-parser">
|
---|
| 68 | <primary sortas="g-XML-Parser">XML::Parser</primary></indexterm>
|
---|
[cf3ab518] | 69 |
|
---|
[bd23186f] | 70 | <itemizedlist spacing='compact'><listitem>
|
---|
| 71 | <para><xref linkend="expat"/></para>
|
---|
| 72 | </listitem></itemizedlist>
|
---|
| 73 | </listitem>
|
---|
[71398d29] | 74 |
|
---|
[bd23186f] | 75 | <listitem>
|
---|
| 76 | <para><xref linkend="GTK"/></para>
|
---|
| 77 | </listitem></itemizedlist>
|
---|
[30e1539] | 78 | </listitem>
|
---|
[52d29f7] | 79 |
|
---|
[7fc4452] | 80 | <listitem><para id="perl-sgmlspm"><ulink
|
---|
[bd23186f] | 81 | url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">
|
---|
| 82 | SGMLSpm-&SGMLSpm-version;</ulink></para>
|
---|
[7fc4452] | 83 | <indexterm zone="perl-modules perl-sgmlspm">
|
---|
| 84 | <primary sortas="g-SGMLSpm">SGMLSpm</primary></indexterm>
|
---|
[bd23186f] | 85 | </listitem>
|
---|
[6a0d7b2] | 86 |
|
---|
[7fc4452] | 87 | <listitem><para id="perl-perl-tk"><ulink
|
---|
[bd23186f] | 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>
|
---|
[7fc4452] | 90 | <indexterm zone="perl-modules perl-perl-tk">
|
---|
| 91 | <primary sortas="g-Perl-Tk">Perl::Tk</primary></indexterm>
|
---|
[6a0d7b2] | 92 |
|
---|
[bd23186f] | 93 | <itemizedlist spacing='compact'><listitem>
|
---|
| 94 | <para><xref linkend="tk"/> and <xref linkend="libjpeg"/></para>
|
---|
| 95 | </listitem></itemizedlist>
|
---|
| 96 | </listitem>
|
---|
[30e1539] | 97 |
|
---|
[7fc4452] | 98 | <listitem><para id="perl-net-dns"><ulink
|
---|
[bd23186f] | 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>
|
---|
[7fc4452] | 101 | <indexterm zone="perl-modules perl-net-dns">
|
---|
| 102 | <primary sortas="g-Net-DNS">Net::DNS</primary></indexterm>
|
---|
[30e1539] | 103 |
|
---|
[7fc4452] | 104 | <itemizedlist spacing='compact'><listitem><para id="perl-digest-hmac"><ulink
|
---|
[bd23186f] | 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>
|
---|
[7fc4452] | 107 | <indexterm zone="perl-modules perl-digest-hmac">
|
---|
| 108 | <primary sortas="g-Digest-HMAC">Digest::HMAC</primary></indexterm>
|
---|
[30e1539] | 109 |
|
---|
[7fc4452] | 110 | <itemizedlist spacing='compact'><listitem><para id="perl-digest-sha1"><ulink
|
---|
[bd23186f] | 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>
|
---|
[7fc4452] | 113 | <indexterm zone="perl-modules perl-digest-sha1">
|
---|
| 114 | <primary sortas="g-Digest-SHA1">Digest::SHA1</primary></indexterm>
|
---|
[bd23186f] | 115 | </listitem></itemizedlist>
|
---|
[30e1539] | 116 | </listitem></itemizedlist>
|
---|
[62c964d] | 117 | </listitem>
|
---|
| 118 |
|
---|
[7fc4452] | 119 | <listitem><para id="perl-lwp"><ulink
|
---|
[62c964d] | 120 | url="http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-&LWP-version;.tar.gz">
|
---|
| 121 | LWP-&LWP-version;</ulink></para>
|
---|
[7fc4452] | 122 | <indexterm zone="perl-modules perl-lwp">
|
---|
| 123 | <primary sortas="g-LWP">LWP</primary></indexterm>
|
---|
[62c964d] | 124 |
|
---|
[7fc4452] | 125 | <itemizedlist spacing='compact'><listitem><para id="perl-uri"><ulink
|
---|
[62c964d] | 126 | url="http://www.cpan.org/authors/id/G/GA/GAAS/URI-&URI-version;.tar.gz">
|
---|
| 127 | URI-&URI-version;</ulink></para>
|
---|
[7fc4452] | 128 | <indexterm zone="perl-modules perl-uri">
|
---|
| 129 | <primary sortas="g-URI">URI</primary></indexterm>
|
---|
[62c964d] | 130 |
|
---|
[7fc4452] | 131 | <itemizedlist spacing='compact'><listitem><para id="perl-business-isbn"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 135 | <indexterm zone="perl-modules perl-business-isbn">
|
---|
| 136 | <primary sortas="g-Business-ISBN">Business::ISBN</primary></indexterm>
|
---|
[62c964d] | 137 |
|
---|
[7fc4452] | 138 | <itemizedlist spacing='compact'><listitem><para id="perl-business-isbn-data"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 141 | <indexterm zone="perl-modules perl-business-isbn-data">
|
---|
| 142 | <primary sortas="g-Business-ISBN-Data">Business::ISBN::Data</primary></indexterm>
|
---|
[62c964d] | 143 |
|
---|
[7fc4452] | 144 | <itemizedlist spacing='compact'><listitem><para id="perl-test-pod"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 147 | <indexterm zone="perl-modules perl-test-pod">
|
---|
| 148 | <primary sortas="g-Test-Pod">Test::Pod</primary></indexterm>
|
---|
[62c964d] | 149 |
|
---|
[7fc4452] | 150 | <itemizedlist spacing='compact'><listitem><para id="perl-pod-simple"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 153 | <indexterm zone="perl-modules perl-pod-simple">
|
---|
| 154 | <primary sortas="g-Pod-Simple">Pod::Simple</primary></indexterm>
|
---|
[62c964d] | 155 |
|
---|
[7fc4452] | 156 | <itemizedlist spacing='compact'><listitem><para id="perl-pod-escapes"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 159 | <indexterm zone="perl-modules perl-pod-escapes">
|
---|
| 160 | <primary sortas="g-Pod-Escapes">Pod::Escapes</primary></indexterm>
|
---|
[62c964d] | 161 | </listitem></itemizedlist>
|
---|
| 162 | </listitem>
|
---|
| 163 |
|
---|
[7fc4452] | 164 | <listitem><para id="perl-test-builder-tester"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 167 | <indexterm zone="perl-modules perl-test-builder-tester">
|
---|
| 168 | <primary sortas="g-Test-Builder-Tester">Test::Builder::Tester</primary></indexterm>
|
---|
[62c964d] | 169 | </listitem></itemizedlist>
|
---|
| 170 | </listitem>
|
---|
| 171 |
|
---|
[7fc4452] | 172 | <listitem><para id="perl-test-prereq"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 175 | <indexterm zone="perl-modules perl-test-prereq">
|
---|
| 176 | <primary sortas="g-Test-Prereq">Test::Prereq</primary></indexterm>
|
---|
[62c964d] | 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 |
|
---|
[7fc4452] | 183 | <listitem><para id="perl-module-corelist"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 186 | <indexterm zone="perl-modules perl-module-corelist">
|
---|
| 187 | <primary sortas="g-Module-Corelist">Module::Corelist</primary></indexterm>
|
---|
[62c964d] | 188 | </listitem></itemizedlist>
|
---|
| 189 | </listitem></itemizedlist>
|
---|
| 190 | </listitem></itemizedlist>
|
---|
| 191 | </listitem></itemizedlist>
|
---|
| 192 | </listitem>
|
---|
| 193 |
|
---|
[7fc4452] | 194 | <listitem><para id="perl-html-parser"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 197 | <indexterm zone="perl-modules perl-html-parser">
|
---|
| 198 | <primary sortas="g-HTML-Parser">HTML::Parser</primary></indexterm>
|
---|
[62c964d] | 199 |
|
---|
[7fc4452] | 200 | <itemizedlist spacing='compact'><listitem><para id="perl-html-tagset"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 203 | <indexterm zone="perl-modules perl-html-tagset">
|
---|
| 204 | <primary sortas="g-HTML-Tagset">HTML::Tagset</primary></indexterm>
|
---|
[62c964d] | 205 | </listitem></itemizedlist>
|
---|
| 206 | </listitem>
|
---|
| 207 |
|
---|
[7fc4452] | 208 | <listitem><para id="perl-compress-zlib"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 211 | <indexterm zone="perl-modules perl-compress-zlib">
|
---|
| 212 | <primary sortas="g-Compress-Zlib">Compress::Zlib</primary></indexterm>
|
---|
[62c964d] | 213 | </listitem>
|
---|
| 214 |
|
---|
[7fc4452] | 215 | <listitem><para id="perl-crypt-ssleay"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 218 | <indexterm zone="perl-modules perl-crypt-ssleay">
|
---|
| 219 | <primary sortas="g-Crypt-SSLeay">Crypt::SSLeay</primary></indexterm>
|
---|
[62c964d] | 220 | </listitem></itemizedlist>
|
---|
| 221 | </listitem>
|
---|
| 222 |
|
---|
[7fc4452] | 223 | <listitem><para id="perl-datemanip"><ulink
|
---|
[62c964d] | 224 | url="http://www.cpan.org/authors/id/S/SB/SBECK/DateManip-&DateManip-version;.tar.gz">
|
---|
| 225 | DateManip-&DateManip-version;</ulink></para>
|
---|
[7fc4452] | 226 | <indexterm zone="perl-modules perl-datemanip">
|
---|
| 227 | <primary sortas="g-DateManip">DateManip</primary></indexterm>
|
---|
[62c964d] | 228 | </listitem>
|
---|
| 229 |
|
---|
[7fc4452] | 230 | <listitem><para id="perl-finance-quote"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 233 | <indexterm zone="perl-modules perl-finance-quote">
|
---|
| 234 | <primary sortas="g-Finance-Quote">Finance::Quote</primary></indexterm>
|
---|
[62c964d] | 235 |
|
---|
[7fc4452] | 236 | <itemizedlist spacing='compact'><listitem><para id="perl-html-tableextract"><ulink
|
---|
[62c964d] | 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>
|
---|
[7fc4452] | 239 | <indexterm zone="perl-modules perl-html-tableextract">
|
---|
| 240 | <primary sortas="g-HTML-TableExtract">HTML::TableExtract</primary></indexterm>
|
---|
[62c964d] | 241 | </listitem></itemizedlist>
|
---|
[6a0d7b2] | 242 | </listitem></itemizedlist>
|
---|
[52d29f7] | 243 | </sect3>
|
---|
| 244 |
|
---|
| 245 | </sect2>
|
---|
| 246 |
|
---|
| 247 | <sect2>
|
---|
| 248 | <title>Installation of <application>Perl</application> modules</title>
|
---|
[62c964d] | 249 |
|
---|
[52d29f7] | 250 | <para>Install <application>Perl</application> modules by running the following
|
---|
| 251 | commands:</para>
|
---|
[62c964d] | 252 |
|
---|
[52d29f7] | 253 | <screen><userinput><command>perl Makefile.PL &&
|
---|
| 254 | make &&
|
---|
[7fc4452] | 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>
|
---|
[62c964d] | 260 |
|
---|
[e6f8f78] | 261 | <para>The modules listed below require modifications to the instructions in
|
---|
| 262 | order to install successfully.</para>
|
---|
[62c964d] | 263 |
|
---|
[bd23186f] | 264 | <sect3><title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
---|
[52d29f7] | 265 | <screen><userinput><command>perl Makefile.PL --without-guessing &&
|
---|
| 266 | make &&
|
---|
[7fc4452] | 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>
|
---|
[bd23186f] | 272 | </sect3>
|
---|
[62c964d] | 273 |
|
---|
[bd23186f] | 274 | <sect3><title>SGMLSpm-&SGMLSpm-version;</title>
|
---|
[62c964d] | 275 |
|
---|
[0a830a12] | 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>
|
---|
[e6f8f78] | 279 |
|
---|
| 280 | <screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
---|
[0a830a12] | 281 | -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
|
---|
[e6f8f78] | 282 | -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
---|
[7fc4452] | 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 &&
|
---|
[e6f8f78] | 289 | make install_html &&
|
---|
[7fc4452] | 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>
|
---|
[e6f8f78] | 292 | </sect3>
|
---|
[62c964d] | 293 |
|
---|
[52d29f7] | 294 | </sect2>
|
---|
| 295 |
|
---|
| 296 | <sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
---|
| 297 | modules.</title>
|
---|
[bd23186f] | 298 |
|
---|
| 299 | <para>There is an alternate way of installing the modules using
|
---|
| 300 | <application>Perl</application>'s built-in <command>install</command> command.
|
---|
[cebbbb5] | 301 | The command automatically downloads the source from the <acronym>CPAN</acronym>
|
---|
[bd23186f] | 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>
|
---|
[62c964d] | 305 |
|
---|
[bd23186f] | 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>.
|
---|
[7fc4452] | 309 | Start the perl shell with the following command as the root user:</para>
|
---|
[62c964d] | 310 |
|
---|
[7fc4452] | 311 | <screen><userinput role='root'><command>perl -MCPAN -e shell</command></userinput></screen>
|
---|
[62c964d] | 312 |
|
---|
| 313 | <para>Each module may now be installed from this shell with the command:</para>
|
---|
| 314 |
|
---|
[7fc4452] | 315 | <screen><userinput role='root'><command>install <replaceable>[Module::Name]</replaceable></command></userinput></screen>
|
---|
[62c964d] | 316 |
|
---|
[52d29f7] | 317 | <para>For additional commands and help, type <command>help</command>.</para>
|
---|
[62c964d] | 318 |
|
---|
[52d29f7] | 319 | </sect2>
|
---|
[3d60760] | 320 |
|
---|
| 321 | </sect1>
|
---|
| 322 |
|
---|