mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-31 20:42:34 +08:00
cf3ab51815
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2904 af4574ff-66df-0310-9fd7-8a98e5e911e0
144 lines
6.4 KiB
XML
144 lines
6.4 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY LFS-Perl-version "5.8.5">
|
|
]>
|
|
|
|
<sect1 id="perl-modules" xreflabel="Perl modules">
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
<?dbhtml filename="perl-modules.html" ?>
|
|
<title>Perl modules</title>
|
|
|
|
<sect2>
|
|
<title>Introduction to <application>Perl</application> modules</title>
|
|
|
|
<para>The <application>Perl</application> module packages add useful objects
|
|
to the <application>Perl</application> language. Modules utilized by packages
|
|
throughout <acronym>BLFS</acronym> are listed here, along with their
|
|
dependencies.</para>
|
|
|
|
<sect3><title><application>Perl</application> Module Packages</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para><ulink
|
|
url="http://search.cpan.org/CPAN/authors/id/C/CS/CSOE/PDL-&PDL-version;.tar.gz">PDL-&PDL-version;</ulink>
|
|
</para><itemizedlist spacing='compact'>
|
|
|
|
<listitem><para><ulink
|
|
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>
|
|
|
|
<listitem><para><ulink
|
|
url="http://www.cpan.org/authors/id/I/IN/INGY/Inline-&Inline-version;.tar.gz">Inline-&Inline-version;</ulink>
|
|
</para><itemizedlist spacing='compact'>
|
|
|
|
<listitem><para><ulink
|
|
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>
|
|
|
|
<listitem><para><ulink
|
|
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>
|
|
|
|
<listitem><para><ulink
|
|
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'>
|
|
|
|
<listitem><para><ulink
|
|
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>
|
|
|
|
<listitem><para><ulink
|
|
url="http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">XML-Parser-&XML-Parser-version;</ulink></para><itemizedlist spacing='compact'>
|
|
|
|
<listitem><para><xref linkend="expat"/></para></listitem></itemizedlist>
|
|
</listitem>
|
|
|
|
<listitem><para><xref linkend="GTK"/></para>
|
|
</listitem></itemizedlist></listitem>
|
|
|
|
<listitem><para><ulink
|
|
url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">SGMLSpm-&SGMLSpm-version;</ulink>
|
|
</para></listitem>
|
|
|
|
<listitem><para><ulink
|
|
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'>
|
|
|
|
<listitem><para><xref linkend="tk"/> and
|
|
<xref linkend="libjpeg"/></para></listitem></itemizedlist>
|
|
</listitem></itemizedlist>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of <application>Perl</application> modules</title>
|
|
|
|
<para>Install <application>Perl</application> modules by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput><command>perl Makefile.PL &&
|
|
make &&
|
|
make test &&
|
|
make install</command></userinput></screen>
|
|
|
|
<para>The modules listed below require modifications to the instructions in
|
|
order to install successfully.</para>
|
|
|
|
<sect3>
|
|
<title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
|
|
|
<screen><userinput><command>perl Makefile.PL --without-guessing &&
|
|
make &&
|
|
make test &&
|
|
make install</command></userinput></screen></sect3>
|
|
|
|
<sect3>
|
|
<title>SGMLSpm-&SGMLSpm-version;</title>
|
|
|
|
<para>If your system's <application>Perl</application> version is different
|
|
than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
|
|
command below to reflect the version you have installed.</para>
|
|
|
|
<screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
|
-e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
|
|
-e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
|
Makefile &&
|
|
make install &&
|
|
install -d -m 755 /usr/share/doc/perl5 &&
|
|
make install_html &&
|
|
rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &&
|
|
install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
|
modules.</title>
|
|
|
|
<para>There is an alternate way of installing the modules using
|
|
<application>Perl</application>'s built-in <command>install</command> command.
|
|
The command automatically downloads the source from the <acronym>CPAN</acronym>
|
|
archive, extracts it, runs the commands mentioned above, and removes
|
|
the build tree.</para>
|
|
|
|
<para>Start the perl shell with the commands:</para>
|
|
|
|
<screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
|
|
<para>Each module may now be installed from this shell with the command:</para>
|
|
<screen><userinput><command>install <moduleName></command></userinput></screen>
|
|
|
|
<para>For additional commands and help, type <command>help</command>.</para>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|