[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 |
|
---|
[e6f8f78] | 7 | <!-- <!ENTITY Gtk-Perl-version "0.7009">
|
---|
[52d29f7] | 8 | <!ENTITY PDL-version "2.4.0">
|
---|
| 9 | <!ENTITY XML-Parser-version "2.34">
|
---|
| 10 | <!ENTITY XML-Writer-version "0.4.1">
|
---|
| 11 | <!ENTITY Astro-FITS-Header-version "2.8.1">
|
---|
[e6f8f78] | 12 | <!ENTITY Parse-RecDescent-version "1.94"> -->
|
---|
[0a830a12] | 13 | <!ENTITY LFS-Perl-version "5.8.4">
|
---|
[52d29f7] | 14 |
|
---|
| 15 | ]>
|
---|
| 16 |
|
---|
[24a37fa7] | 17 | <sect1 id="perl-modules" xreflabel="Perl modules">
|
---|
[19aa75a] | 18 | <?dbhtml filename="perl-modules.html" ?>
|
---|
[24a37fa7] | 19 | <title>Perl modules</title>
|
---|
[3d60760] | 20 |
|
---|
[52d29f7] | 21 | <sect2>
|
---|
| 22 | <title>Introduction to <application>Perl</application> modules</title>
|
---|
| 23 |
|
---|
| 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
|
---|
| 27 | dependencies.</para>
|
---|
| 28 |
|
---|
[6a0d7b2] | 29 | <sect3><title><application>Perl</application> Module Packages</title>
|
---|
[52d29f7] | 30 | <itemizedlist spacing='compact'>
|
---|
| 31 | <listitem><para><ulink
|
---|
| 32 | url="http://search.cpan.org/CPAN/authors/id/C/CS/CSOE/PDL-&PDL-version;.tar.gz">PDL-&PDL-version;</ulink></para><itemizedlist spacing='compact'>
|
---|
| 33 |
|
---|
[cebbbb5] | 34 | <listitem><para><ulink
|
---|
| 35 | url="http://www.cpan.org/authors/id/K/KG/KGB/ExtUtils-F77-&ExtUtils-F77-version;.tar.gz">ExtUtils-F77-&ExtUtils-F77-version;</ulink></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></para><itemizedlist spacing='compact'>
|
---|
| 39 |
|
---|
| 40 | <listitem><para><ulink
|
---|
| 41 | url="http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-&Parse-RecDescent-version;.tar.gz">Parse-RecDescent-&Parse-RecDescent-version;</ulink></para></listitem></itemizedlist></listitem>
|
---|
| 42 |
|
---|
[52d29f7] | 43 | <listitem><para><ulink
|
---|
| 44 | 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></para></listitem></itemizedlist></listitem>
|
---|
| 45 |
|
---|
| 46 | <listitem><para><ulink
|
---|
| 47 | url="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">Gtk-Perl-&Gtk-Perl-version;</ulink></para><itemizedlist spacing='compact'>
|
---|
| 48 |
|
---|
| 49 | <listitem><para><ulink
|
---|
[34f86ab] | 50 | url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">XML-Writer-&XML-Writer-version;</ulink></para></listitem>
|
---|
[52d29f7] | 51 |
|
---|
| 52 | <listitem><para><ulink
|
---|
| 53 | url="http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">XML-Parser-&XML-Parser-version;</ulink>
|
---|
| 54 | </para></listitem></itemizedlist></listitem>
|
---|
| 55 |
|
---|
[e6f8f78] | 56 | <listitem><para><ulink
|
---|
[6a0d7b2] | 57 | url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">SGMLSpm-&SGMLSpm-version;</ulink></para></listitem>
|
---|
| 58 |
|
---|
| 59 | <listitem><para><ulink
|
---|
| 60 | url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">Tk-&Perl-Tk-version;</ulink></para><itemizedlist spacing='compact'>
|
---|
| 61 |
|
---|
| 62 | <listitem><para><xref linkend="tk"/> and <xref linkend="libjpeg"/></para></listitem></itemizedlist>
|
---|
| 63 | </listitem></itemizedlist>
|
---|
[52d29f7] | 64 |
|
---|
| 65 | </sect3>
|
---|
| 66 |
|
---|
| 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2>
|
---|
| 70 | <title>Installation of <application>Perl</application> modules</title>
|
---|
| 71 |
|
---|
| 72 | <para>Install <application>Perl</application> modules by running the following
|
---|
| 73 | commands:</para>
|
---|
| 74 |
|
---|
| 75 | <screen><userinput><command>perl Makefile.PL &&
|
---|
| 76 | make &&
|
---|
| 77 | make install</command></userinput></screen>
|
---|
| 78 |
|
---|
[e6f8f78] | 79 | <para>The modules listed below require modifications to the instructions in
|
---|
| 80 | order to install successfully.</para>
|
---|
[52d29f7] | 81 |
|
---|
[e6f8f78] | 82 | <sect3>
|
---|
| 83 | <title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
---|
[52d29f7] | 84 |
|
---|
| 85 | <screen><userinput><command>perl Makefile.PL --without-guessing &&
|
---|
| 86 | make &&
|
---|
[e6f8f78] | 87 | make install</command></userinput></screen></sect3>
|
---|
| 88 |
|
---|
| 89 | <sect3>
|
---|
| 90 | <title>SGMLSpm-&SGMLSpm-version;</title>
|
---|
| 91 |
|
---|
[0a830a12] | 92 | <para>If your system's <application>Perl</application> version is different
|
---|
| 93 | than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
|
---|
| 94 | command below to reflect the version you have installed.</para>
|
---|
[e6f8f78] | 95 |
|
---|
| 96 | <screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
---|
[0a830a12] | 97 | -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
|
---|
[e6f8f78] | 98 | -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
---|
| 99 | Makefile &&
|
---|
| 100 | make install &&
|
---|
| 101 | install -d -m 755 /usr/share/doc/perl5 &&
|
---|
| 102 | make install_html &&
|
---|
| 103 | rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &&
|
---|
| 104 | install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
|
---|
| 105 | </sect3>
|
---|
[52d29f7] | 106 |
|
---|
| 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
---|
| 110 | modules.</title>
|
---|
| 111 |
|
---|
| 112 | <para>There is an alternate way of installing the modules using
|
---|
| 113 | <application>Perl</application>'s built-in <command>install</command> command.
|
---|
[cebbbb5] | 114 | The command automatically downloads the source from the <acronym>CPAN</acronym>
|
---|
| 115 | archive, extracts it, runs the commands mentioned above, and removes
|
---|
[52d29f7] | 116 | the build tree.</para>
|
---|
| 117 |
|
---|
| 118 | <para>Start the perl shell with the commands:</para>
|
---|
| 119 |
|
---|
| 120 | <screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
|
---|
| 121 | <para>Each module may now be installed from this shell with the command:</para>
|
---|
| 122 | <screen><userinput><command>install <moduleName></command></userinput></screen>
|
---|
| 123 |
|
---|
| 124 | <para>For additional commands and help, type <command>help</command>.</para>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
[3d60760] | 127 |
|
---|
| 128 | </sect1>
|
---|
| 129 |
|
---|