[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[23460a6] | 6 |
|
---|
| 7 | <!ENTITY perl_modules_md5sums_download_http "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/M-P/Perl_Modules/Perl_Modules.gz.md5sums">
|
---|
| 8 | <!ENTITY perl_modules_md5sums_download_ftp "ftp://anduin.linuxfromscratch.org/BLFS/SVN/M-P/Perl_Modules/Perl_Modules.gz.md5sums">
|
---|
[52d29f7] | 9 | ]>
|
---|
| 10 |
|
---|
[24a37fa7] | 11 | <sect1 id="perl-modules" xreflabel="Perl modules">
|
---|
[71398d29] | 12 | <sect1info>
|
---|
[5cd0959d] | 13 | <othername>$LastChangedBy$</othername>
|
---|
| 14 | <date>$Date$</date>
|
---|
[71398d29] | 15 | </sect1info>
|
---|
[19aa75a] | 16 | <?dbhtml filename="perl-modules.html" ?>
|
---|
[bd23186f] | 17 | <title><application>Perl</application> modules</title>
|
---|
[7fc4452] | 18 | <indexterm zone="perl-modules">
|
---|
| 19 | <primary sortas="a-Perl-modules">Perl modules</primary></indexterm>
|
---|
[3d60760] | 20 |
|
---|
[52d29f7] | 21 | <sect2>
|
---|
| 22 | <title>Introduction to <application>Perl</application> modules</title>
|
---|
| 23 |
|
---|
[30e1539] | 24 | <para>The <application>Perl</application> module packages add useful objects
|
---|
| 25 | to the <application>Perl</application> language. Modules utilized by packages
|
---|
| 26 | throughout <acronym>BLFS</acronym> are listed here, along with their
|
---|
[bd23186f] | 27 | dependencies. Most references to <application>Perl</application> modules are
|
---|
| 28 | in the form of Module, Module::SubName or Module::Sub::Name, however
|
---|
| 29 | occasionally you'll also see Module, Module-SubName or Module-Sub-Name. Most
|
---|
| 30 | references on this page are in the latter form, as these are the official
|
---|
| 31 | package names.</para>
|
---|
| 32 |
|
---|
[23460a6] | 33 | <itemizedlist><listitem><para>Download MD5 sums (HTTP):
|
---|
| 34 | <ulink url="&perl_modules_md5sums_download_http;"/></para></listitem>
|
---|
| 35 | <listitem><para>Download MD5 sums (FTP):
|
---|
| 36 | <ulink url="&perl_modules_md5sums_download_ftp;"/></para></listitem>
|
---|
| 37 | </itemizedlist>
|
---|
| 38 |
|
---|
[7fc4452] | 39 | <sect3 id="perl-module-info"><title>The Module::Info module</title>
|
---|
| 40 | <indexterm zone="perl-modules perl-module-info">
|
---|
| 41 | <primary sortas="g-Module-Info">Module::Info</primary></indexterm>
|
---|
| 42 |
|
---|
[bd23186f] | 43 | <para>One module in particular is shown first, as this module's usefulness
|
---|
| 44 | warrants installation, even though it won't be required by many other modules.
|
---|
| 45 | The Module::Info module can tell you if a particular module is included in,
|
---|
| 46 | or has been installed into your <application>Perl</application> installation.
|
---|
| 47 | Additionally, the module can tell you what versions are installed and what
|
---|
| 48 | dependencies are required for them. You can even use Module::Info to gather
|
---|
| 49 | dependencies of uninstalled modules.</para>
|
---|
[cebbbb5] | 50 |
|
---|
[30e1539] | 51 | <itemizedlist spacing='compact'>
|
---|
| 52 | <listitem><para><ulink
|
---|
[62c964d] | 53 | url="http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-&Module-Info-version;.tar.gz">
|
---|
| 54 | Module-Info-&Module-Info-version;</ulink></para>
|
---|
| 55 | </listitem></itemizedlist>
|
---|
[bd23186f] | 56 | </sect3>
|
---|
[cebbbb5] | 57 |
|
---|
[bd23186f] | 58 | <sect3><title><application>Perl</application> Module Packages</title>
|
---|
[52d29f7] | 59 |
|
---|
[7fc4452] | 60 | <itemizedlist><listitem><para id="perl-gtk-perl"><ulink
|
---|
[bd23186f] | 61 | url="http://www.cpan.org/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">
|
---|
| 62 | Gtk-Perl-&Gtk-Perl-version;</ulink></para>
|
---|
[7fc4452] | 63 | <indexterm zone="perl-modules perl-gtk-perl">
|
---|
| 64 | <primary sortas="g-Gtk-Perl">Gtk::Perl</primary></indexterm>
|
---|
[52d29f7] | 65 |
|
---|
[7fc4452] | 66 | <itemizedlist spacing='compact'><listitem><para id="perl-xml-writer"><ulink
|
---|
[bd23186f] | 67 | url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">
|
---|
| 68 | XML-Writer-&XML-Writer-version;</ulink></para>
|
---|
[7fc4452] | 69 | <indexterm zone="perl-modules perl-xml-writer">
|
---|
| 70 | <primary sortas="g-XML-Writer">XML::Writer</primary></indexterm>
|
---|
[bd23186f] | 71 | </listitem>
|
---|
[52d29f7] | 72 |
|
---|
[7fc4452] | 73 | <listitem><para id="perl-xml-parser"><ulink
|
---|
[bd23186f] | 74 | url="http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">
|
---|
| 75 | XML-Parser-&XML-Parser-version;</ulink></para>
|
---|
[7fc4452] | 76 | <indexterm zone="perl-modules perl-xml-parser">
|
---|
| 77 | <primary sortas="g-XML-Parser">XML::Parser</primary></indexterm>
|
---|
[cf3ab518] | 78 |
|
---|
[bd23186f] | 79 | <itemizedlist spacing='compact'><listitem>
|
---|
| 80 | <para><xref linkend="expat"/></para>
|
---|
| 81 | </listitem></itemizedlist>
|
---|
| 82 | </listitem>
|
---|
[71398d29] | 83 |
|
---|
[bd23186f] | 84 | <listitem>
|
---|
| 85 | <para><xref linkend="GTK"/></para>
|
---|
| 86 | </listitem></itemizedlist>
|
---|
[30e1539] | 87 | </listitem>
|
---|
[52d29f7] | 88 |
|
---|
[7fc4452] | 89 | <listitem><para id="perl-sgmlspm"><ulink
|
---|
[bd23186f] | 90 | url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">
|
---|
| 91 | SGMLSpm-&SGMLSpm-version;</ulink></para>
|
---|
[7fc4452] | 92 | <indexterm zone="perl-modules perl-sgmlspm">
|
---|
| 93 | <primary sortas="g-SGMLSpm">SGMLSpm</primary></indexterm>
|
---|
[bd23186f] | 94 | </listitem>
|
---|
[6a0d7b2] | 95 |
|
---|
[7fc4452] | 96 | <listitem><para id="perl-perl-tk"><ulink
|
---|
[bd23186f] | 97 | url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">
|
---|
| 98 | Tk-&Perl-Tk-version;</ulink></para>
|
---|
[7fc4452] | 99 | <indexterm zone="perl-modules perl-perl-tk">
|
---|
| 100 | <primary sortas="g-Perl-Tk">Perl::Tk</primary></indexterm>
|
---|
[6a0d7b2] | 101 |
|
---|
[bd23186f] | 102 | <itemizedlist spacing='compact'><listitem>
|
---|
| 103 | <para><xref linkend="tk"/> and <xref linkend="libjpeg"/></para>
|
---|
| 104 | </listitem></itemizedlist>
|
---|
| 105 | </listitem>
|
---|
[30e1539] | 106 |
|
---|
[7fc4452] | 107 | <listitem><para id="perl-net-dns"><ulink
|
---|
[bd23186f] | 108 | url="http://www.cpan.org/authors/id/C/CR/CREIN/Net-DNS-&Net-DNS-version;.tar.gz">
|
---|
| 109 | Net-DNS-&Net-DNS-version;</ulink></para>
|
---|
[7fc4452] | 110 | <indexterm zone="perl-modules perl-net-dns">
|
---|
| 111 | <primary sortas="g-Net-DNS">Net::DNS</primary></indexterm>
|
---|
[30e1539] | 112 |
|
---|
[7fc4452] | 113 | <itemizedlist spacing='compact'><listitem><para id="perl-digest-hmac"><ulink
|
---|
[bd23186f] | 114 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-&Digest-HMAC-version;.tar.gz">
|
---|
| 115 | Digest-HMAC-&Digest-HMAC-version;</ulink></para>
|
---|
[7fc4452] | 116 | <indexterm zone="perl-modules perl-digest-hmac">
|
---|
| 117 | <primary sortas="g-Digest-HMAC">Digest::HMAC</primary></indexterm>
|
---|
[30e1539] | 118 |
|
---|
[7fc4452] | 119 | <itemizedlist spacing='compact'><listitem><para id="perl-digest-sha1"><ulink
|
---|
[bd23186f] | 120 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-&Digest-SHA1-version;.tar.gz">
|
---|
| 121 | Digest-SHA1-&Digest-SHA1-version;</ulink></para>
|
---|
[7fc4452] | 122 | <indexterm zone="perl-modules perl-digest-sha1">
|
---|
| 123 | <primary sortas="g-Digest-SHA1">Digest::SHA1</primary></indexterm>
|
---|
[bd23186f] | 124 | </listitem></itemizedlist>
|
---|
[30e1539] | 125 | </listitem></itemizedlist>
|
---|
[62c964d] | 126 | </listitem>
|
---|
| 127 |
|
---|
[7fc4452] | 128 | <listitem><para id="perl-lwp"><ulink
|
---|
[62c964d] | 129 | url="http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-&LWP-version;.tar.gz">
|
---|
| 130 | LWP-&LWP-version;</ulink></para>
|
---|
[7fc4452] | 131 | <indexterm zone="perl-modules perl-lwp">
|
---|
| 132 | <primary sortas="g-LWP">LWP</primary></indexterm>
|
---|
[62c964d] | 133 |
|
---|
[7fc4452] | 134 | <itemizedlist spacing='compact'><listitem><para id="perl-uri"><ulink
|
---|
[62c964d] | 135 | url="http://www.cpan.org/authors/id/G/GA/GAAS/URI-&URI-version;.tar.gz">
|
---|
| 136 | URI-&URI-version;</ulink></para>
|
---|
[7fc4452] | 137 | <indexterm zone="perl-modules perl-uri">
|
---|
| 138 | <primary sortas="g-URI">URI</primary></indexterm>
|
---|
[62c964d] | 139 |
|
---|
[7fc4452] | 140 | <itemizedlist spacing='compact'><listitem><para id="perl-business-isbn"><ulink
|
---|
[62c964d] | 141 | url="http://www.cpan.org/authors/id/B/BD/BDFOY/Business-ISBN-&Business-ISBN-version;.tar.gz">
|
---|
| 142 | Business-ISBN-&Business-ISBN-version;</ulink> (Only used during the test
|
---|
| 143 | suite)</para>
|
---|
[7fc4452] | 144 | <indexterm zone="perl-modules perl-business-isbn">
|
---|
| 145 | <primary sortas="g-Business-ISBN">Business::ISBN</primary></indexterm>
|
---|
[62c964d] | 146 |
|
---|
[7fc4452] | 147 | <itemizedlist spacing='compact'><listitem><para id="perl-business-isbn-data"><ulink
|
---|
[62c964d] | 148 | url="http://www.cpan.org/authors/id/B/BD/BDFOY/Business-ISBN-Data-&Business-ISBN-Data-version;.tar.gz">
|
---|
| 149 | Business-ISBN-Data-&Business-ISBN-Data-version;</ulink></para>
|
---|
[7fc4452] | 150 | <indexterm zone="perl-modules perl-business-isbn-data">
|
---|
| 151 | <primary sortas="g-Business-ISBN-Data">Business::ISBN::Data</primary></indexterm>
|
---|
[62c964d] | 152 |
|
---|
[7fc4452] | 153 | <itemizedlist spacing='compact'><listitem><para id="perl-test-pod"><ulink
|
---|
[62c964d] | 154 | url="http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Pod-&Test-Pod-version;.tar.gz">
|
---|
| 155 | Test-Pod-&Test-Pod-version;</ulink></para>
|
---|
[7fc4452] | 156 | <indexterm zone="perl-modules perl-test-pod">
|
---|
| 157 | <primary sortas="g-Test-Pod">Test::Pod</primary></indexterm>
|
---|
[62c964d] | 158 |
|
---|
[7fc4452] | 159 | <itemizedlist spacing='compact'><listitem><para id="perl-pod-simple"><ulink
|
---|
[62c964d] | 160 | url="http://www.cpan.org/authors/id/S/SB/SBURKE/Pod-Simple-&Pod-Simple-version;.tar.gz">
|
---|
| 161 | Pod-Simple-&Pod-Simple-version;</ulink></para>
|
---|
[7fc4452] | 162 | <indexterm zone="perl-modules perl-pod-simple">
|
---|
| 163 | <primary sortas="g-Pod-Simple">Pod::Simple</primary></indexterm>
|
---|
[62c964d] | 164 |
|
---|
[7fc4452] | 165 | <itemizedlist spacing='compact'><listitem><para id="perl-pod-escapes"><ulink
|
---|
[62c964d] | 166 | url="http://www.cpan.org/authors/id/S/SB/SBURKE/Pod-Escapes-&Pod-Escapes-version;.tar.gz">
|
---|
| 167 | Pod-Escapes-&Pod-Escapes-version;</ulink></para>
|
---|
[7fc4452] | 168 | <indexterm zone="perl-modules perl-pod-escapes">
|
---|
| 169 | <primary sortas="g-Pod-Escapes">Pod::Escapes</primary></indexterm>
|
---|
[62c964d] | 170 | </listitem></itemizedlist>
|
---|
| 171 | </listitem>
|
---|
| 172 |
|
---|
[7fc4452] | 173 | <listitem><para id="perl-test-builder-tester"><ulink
|
---|
[62c964d] | 174 | url="http://www.cpan.org/authors/id/M/MA/MARKF/Test-Builder-Tester-&Test-Builder-Tester-version;.tar.gz">
|
---|
| 175 | Test-Builder-Tester-&Test-Builder-Tester-version;</ulink></para>
|
---|
[7fc4452] | 176 | <indexterm zone="perl-modules perl-test-builder-tester">
|
---|
| 177 | <primary sortas="g-Test-Builder-Tester">Test::Builder::Tester</primary></indexterm>
|
---|
[62c964d] | 178 | </listitem></itemizedlist>
|
---|
| 179 | </listitem>
|
---|
| 180 |
|
---|
[7fc4452] | 181 | <listitem><para id="perl-test-prereq"><ulink
|
---|
[62c964d] | 182 | url="http://www.cpan.org/authors/id/B/BD/BDFOY/Test-Prereq-&Test-Prereq-version;.tar.gz">
|
---|
| 183 | Test-Prereq-&Test-Prereq-version;</ulink></para>
|
---|
[7fc4452] | 184 | <indexterm zone="perl-modules perl-test-prereq">
|
---|
| 185 | <primary sortas="g-Test-Prereq">Test::Prereq</primary></indexterm>
|
---|
[62c964d] | 186 |
|
---|
| 187 | <itemizedlist spacing='compact'><listitem><para><ulink
|
---|
| 188 | url="http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-&Module-Info-version;.tar.gz">
|
---|
| 189 | Module-Info-&Module-Info-version;</ulink></para>
|
---|
| 190 | </listitem>
|
---|
| 191 |
|
---|
[7fc4452] | 192 | <listitem><para id="perl-module-corelist"><ulink
|
---|
[62c964d] | 193 | url="http://www.cpan.org/authors/id/R/RC/RCLAMP/Module-CoreList-&Module-Corelist-version;.tar.gz">
|
---|
| 194 | Module-CoreList-&Module-Corelist-version;</ulink></para>
|
---|
[7fc4452] | 195 | <indexterm zone="perl-modules perl-module-corelist">
|
---|
| 196 | <primary sortas="g-Module-Corelist">Module::Corelist</primary></indexterm>
|
---|
[62c964d] | 197 | </listitem></itemizedlist>
|
---|
| 198 | </listitem></itemizedlist>
|
---|
| 199 | </listitem></itemizedlist>
|
---|
| 200 | </listitem></itemizedlist>
|
---|
| 201 | </listitem>
|
---|
| 202 |
|
---|
[7fc4452] | 203 | <listitem><para id="perl-html-parser"><ulink
|
---|
[62c964d] | 204 | url="http://www.cpan.org/authors/id/G/GA/GAAS/HTML-Parser-&HTML-Parser-version;.tar.gz">
|
---|
| 205 | HTML-Parser-&HTML-Parser-version;</ulink></para>
|
---|
[7fc4452] | 206 | <indexterm zone="perl-modules perl-html-parser">
|
---|
| 207 | <primary sortas="g-HTML-Parser">HTML::Parser</primary></indexterm>
|
---|
[62c964d] | 208 |
|
---|
[7fc4452] | 209 | <itemizedlist spacing='compact'><listitem><para id="perl-html-tagset"><ulink
|
---|
[62c964d] | 210 | url="http://www.cpan.org/authors/id/S/SB/SBURKE/HTML-Tagset-&HTML-Tagset-version;.tar.gz">
|
---|
| 211 | HTML-Tagset-&HTML-Tagset-version;</ulink></para>
|
---|
[7fc4452] | 212 | <indexterm zone="perl-modules perl-html-tagset">
|
---|
| 213 | <primary sortas="g-HTML-Tagset">HTML::Tagset</primary></indexterm>
|
---|
[62c964d] | 214 | </listitem></itemizedlist>
|
---|
| 215 | </listitem>
|
---|
| 216 |
|
---|
[7fc4452] | 217 | <listitem><para id="perl-compress-zlib"><ulink
|
---|
[62c964d] | 218 | url="http://www.cpan.org/authors/id/P/PM/PMQS/Compress-Zlib-&Compress-Zlib-version;.tar.gz">
|
---|
| 219 | Compress-Zlib-&Compress-Zlib-version;</ulink></para>
|
---|
[7fc4452] | 220 | <indexterm zone="perl-modules perl-compress-zlib">
|
---|
| 221 | <primary sortas="g-Compress-Zlib">Compress::Zlib</primary></indexterm>
|
---|
[62c964d] | 222 | </listitem>
|
---|
| 223 |
|
---|
[7fc4452] | 224 | <listitem><para id="perl-crypt-ssleay"><ulink
|
---|
[62c964d] | 225 | url="http://www.cpan.org/authors/id/C/CH/CHAMAS/Crypt-SSLeay-&Crypt-SSLeay-version;.tar.gz">
|
---|
| 226 | Crypt-SSLeay-&Crypt-SSLeay-version;</ulink></para>
|
---|
[7fc4452] | 227 | <indexterm zone="perl-modules perl-crypt-ssleay">
|
---|
| 228 | <primary sortas="g-Crypt-SSLeay">Crypt::SSLeay</primary></indexterm>
|
---|
[62c964d] | 229 | </listitem></itemizedlist>
|
---|
| 230 | </listitem>
|
---|
| 231 |
|
---|
[7fc4452] | 232 | <listitem><para id="perl-datemanip"><ulink
|
---|
[62c964d] | 233 | url="http://www.cpan.org/authors/id/S/SB/SBECK/DateManip-&DateManip-version;.tar.gz">
|
---|
| 234 | DateManip-&DateManip-version;</ulink></para>
|
---|
[7fc4452] | 235 | <indexterm zone="perl-modules perl-datemanip">
|
---|
| 236 | <primary sortas="g-DateManip">DateManip</primary></indexterm>
|
---|
[62c964d] | 237 | </listitem>
|
---|
| 238 |
|
---|
[7fc4452] | 239 | <listitem><para id="perl-finance-quote"><ulink
|
---|
[62c964d] | 240 | url="http://www.cpan.org/authors/id/P/PJ/PJF/Finance-Quote-&Finance-Quote-version;.tar.gz">
|
---|
| 241 | Finance-Quote-&Finance-Quote-version;</ulink></para>
|
---|
[7fc4452] | 242 | <indexterm zone="perl-modules perl-finance-quote">
|
---|
| 243 | <primary sortas="g-Finance-Quote">Finance::Quote</primary></indexterm>
|
---|
[62c964d] | 244 |
|
---|
[7fc4452] | 245 | <itemizedlist spacing='compact'><listitem><para id="perl-html-tableextract"><ulink
|
---|
[62c964d] | 246 | url="http://www.cpan.org/authors/id/M/MS/MSISK/HTML-TableExtract-&HTML-TableExtract-version;.tar.gz">
|
---|
| 247 | HTML-TableExtract-&HTML-TableExtract-version;</ulink></para>
|
---|
[7fc4452] | 248 | <indexterm zone="perl-modules perl-html-tableextract">
|
---|
| 249 | <primary sortas="g-HTML-TableExtract">HTML::TableExtract</primary></indexterm>
|
---|
[62c964d] | 250 | </listitem></itemizedlist>
|
---|
[6a0d7b2] | 251 | </listitem></itemizedlist>
|
---|
[52d29f7] | 252 | </sect3>
|
---|
| 253 |
|
---|
| 254 | </sect2>
|
---|
| 255 |
|
---|
| 256 | <sect2>
|
---|
| 257 | <title>Installation of <application>Perl</application> modules</title>
|
---|
[62c964d] | 258 |
|
---|
[52d29f7] | 259 | <para>Install <application>Perl</application> modules by running the following
|
---|
| 260 | commands:</para>
|
---|
[62c964d] | 261 |
|
---|
[52d29f7] | 262 | <screen><userinput><command>perl Makefile.PL &&
|
---|
| 263 | make &&
|
---|
[7fc4452] | 264 | make test</command></userinput></screen>
|
---|
| 265 |
|
---|
| 266 | <para>Now, as the root user:</para>
|
---|
| 267 |
|
---|
| 268 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
[62c964d] | 269 |
|
---|
[e6f8f78] | 270 | <para>The modules listed below require modifications to the instructions in
|
---|
| 271 | order to install successfully.</para>
|
---|
[62c964d] | 272 |
|
---|
[bd23186f] | 273 | <sect3><title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
---|
[52d29f7] | 274 | <screen><userinput><command>perl Makefile.PL --without-guessing &&
|
---|
| 275 | make &&
|
---|
[7fc4452] | 276 | make test</command></userinput></screen>
|
---|
| 277 |
|
---|
| 278 | <para>Now, as the root user:</para>
|
---|
| 279 |
|
---|
| 280 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
[bd23186f] | 281 | </sect3>
|
---|
[62c964d] | 282 |
|
---|
[bd23186f] | 283 | <sect3><title>SGMLSpm-&SGMLSpm-version;</title>
|
---|
[62c964d] | 284 |
|
---|
[0a830a12] | 285 | <para>If your system's <application>Perl</application> version is different
|
---|
| 286 | than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
|
---|
| 287 | command below to reflect the version you have installed.</para>
|
---|
[e6f8f78] | 288 |
|
---|
| 289 | <screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
---|
[0a830a12] | 290 | -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
|
---|
[e6f8f78] | 291 | -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
---|
[7fc4452] | 292 | Makefile</command></userinput></screen>
|
---|
| 293 |
|
---|
| 294 | <para>Now, as the root user:</para>
|
---|
| 295 |
|
---|
| 296 | <screen><userinput role='root'><command>make install &&
|
---|
| 297 | install -v -d -m755 /usr/share/doc/perl5 &&
|
---|
[e6f8f78] | 298 | make install_html &&
|
---|
[7fc4452] | 299 | rm -v -f /usr/share/doc/perl5/SGMLSpm/sample.pl &&
|
---|
| 300 | install -v -m644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
|
---|
[e6f8f78] | 301 | </sect3>
|
---|
[62c964d] | 302 |
|
---|
[52d29f7] | 303 | </sect2>
|
---|
| 304 |
|
---|
| 305 | <sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
---|
| 306 | modules.</title>
|
---|
[bd23186f] | 307 |
|
---|
| 308 | <para>There is an alternate way of installing the modules using
|
---|
| 309 | <application>Perl</application>'s built-in <command>install</command> command.
|
---|
[cebbbb5] | 310 | The command automatically downloads the source from the <acronym>CPAN</acronym>
|
---|
[bd23186f] | 311 | archive, extracts it, runs the commands mentioned above, and removes the build
|
---|
| 312 | tree. You may still need to install dependent library packages before running
|
---|
| 313 | the automated installation method.</para>
|
---|
[62c964d] | 314 |
|
---|
[bd23186f] | 315 | <para>The first time you run this command, you'll be prompted to enter some
|
---|
| 316 | information regarding download locations and methods. This information is
|
---|
| 317 | retained in files located in <filename class='directory'>~/.cpan</filename>.
|
---|
[7fc4452] | 318 | Start the perl shell with the following command as the root user:</para>
|
---|
[62c964d] | 319 |
|
---|
[7fc4452] | 320 | <screen><userinput role='root'><command>perl -MCPAN -e shell</command></userinput></screen>
|
---|
[62c964d] | 321 |
|
---|
| 322 | <para>Each module may now be installed from this shell with the command:</para>
|
---|
| 323 |
|
---|
[7fc4452] | 324 | <screen><userinput role='root'><command>install <replaceable>[Module::Name]</replaceable></command></userinput></screen>
|
---|
[62c964d] | 325 |
|
---|
[52d29f7] | 326 | <para>For additional commands and help, type <command>help</command>.</para>
|
---|
[62c964d] | 327 |
|
---|
[52d29f7] | 328 | </sect2>
|
---|
[3d60760] | 329 |
|
---|
| 330 | </sect1>
|
---|
| 331 |
|
---|