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