source: general/prog/perl-modules.xml@ bd23186f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since bd23186f was bd23186f, checked in by Randy McMurchy <randy@…>, 19 years ago

Moved the PDL Perl bundle to its own BLFS page

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3163 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.3 KB
RevLine 
[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>
[3d60760]15
[52d29f7]16<sect2>
17<title>Introduction to <application>Perl</application> modules</title>
18
[30e1539]19<para>The <application>Perl</application> module packages add useful objects
20to the <application>Perl</application> language. Modules utilized by packages
21throughout <acronym>BLFS</acronym> are listed here, along with their
[bd23186f]22dependencies. Most references to <application>Perl</application> modules are
23in the form of Module, Module::SubName or Module::Sub::Name, however
24occasionally you'll also see Module, Module-SubName or Module-Sub-Name. Most
25references on this page are in the latter form, as these are the official
26package names.</para>
27
28<sect3><title>The Module::Info module</title>
29<para>One module in particular is shown first, as this module's usefulness
30warrants installation, even though it won't be required by many other modules.
31The Module::Info module can tell you if a particular module is included in,
32or has been installed into your <application>Perl</application> installation.
33Additionally, the module can tell you what versions are installed and what
34dependencies are required for them. You can even use Module::Info to gather
35dependencies of uninstalled modules.</para>
[cebbbb5]36
[30e1539]37<itemizedlist spacing='compact'>
38<listitem><para><ulink
[bd23186f]39url="http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-&Module-Info-version;.tar.gz">Module-Info-&Module-Info-version;</ulink>
[30e1539]40</para></listitem>
[bd23186f]41</itemizedlist>
42</sect3>
[cebbbb5]43
[bd23186f]44<sect3><title><application>Perl</application> Module Packages</title>
[52d29f7]45
[bd23186f]46<itemizedlist><listitem><para><ulink
47url="http://www.cpan.org/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">
48Gtk-Perl-&Gtk-Perl-version;</ulink></para>
[52d29f7]49
[bd23186f]50<itemizedlist spacing='compact'><listitem><para><ulink
51url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">
52XML-Writer-&XML-Writer-version;</ulink></para>
53</listitem>
[52d29f7]54
[30e1539]55<listitem><para><ulink
[bd23186f]56url="http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">
57XML-Parser-&XML-Parser-version;</ulink></para>
[cf3ab518]58
[bd23186f]59<itemizedlist spacing='compact'><listitem>
60<para><xref linkend="expat"/></para>
61</listitem></itemizedlist>
62</listitem>
[71398d29]63
[bd23186f]64<listitem>
65<para><xref linkend="GTK"/></para>
66</listitem></itemizedlist>
[30e1539]67</listitem>
[52d29f7]68
[30e1539]69<listitem><para><ulink
[bd23186f]70url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">
71SGMLSpm-&SGMLSpm-version;</ulink></para>
72</listitem>
[6a0d7b2]73
[30e1539]74<listitem><para><ulink
[bd23186f]75url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">
76Tk-&Perl-Tk-version;</ulink></para>
[6a0d7b2]77
[bd23186f]78<itemizedlist spacing='compact'><listitem>
79<para><xref linkend="tk"/> and <xref linkend="libjpeg"/></para>
80</listitem></itemizedlist>
81</listitem>
[30e1539]82
83<listitem><para><ulink
[bd23186f]84url="http://www.cpan.org/authors/id/C/CR/CREIN/Net-DNS-&Net-DNS-version;.tar.gz">
85Net-DNS-&Net-DNS-version;</ulink></para>
[30e1539]86
[bd23186f]87<itemizedlist spacing='compact'><listitem><para><ulink
88url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-&Digest-HMAC-version;.tar.gz">
89Digest-HMAC-&Digest-HMAC-version;</ulink></para>
[30e1539]90
[bd23186f]91<itemizedlist spacing='compact'><listitem><para><ulink
92url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-&Digest-SHA1-version;.tar.gz">
93Digest-SHA1-&Digest-SHA1-version;</ulink></para>
94</listitem></itemizedlist>
[30e1539]95</listitem></itemizedlist>
[6a0d7b2]96</listitem></itemizedlist>
[52d29f7]97</sect3>
98
99</sect2>
100
101<sect2>
102<title>Installation of <application>Perl</application> modules</title>
103
104<para>Install <application>Perl</application> modules by running the following
105commands:</para>
106
107<screen><userinput><command>perl Makefile.PL &amp;&amp;
108make &amp;&amp;
[71398d29]109make test &amp;&amp;
[52d29f7]110make install</command></userinput></screen>
111
[e6f8f78]112<para>The modules listed below require modifications to the instructions in
113order to install successfully.</para>
[52d29f7]114
[bd23186f]115<sect3><title>Gtk-Perl-&Gtk-Perl-version;:</title>
[52d29f7]116<screen><userinput><command>perl Makefile.PL --without-guessing &amp;&amp;
117make &amp;&amp;
[71398d29]118make test &amp;&amp;
[bd23186f]119make install</command></userinput></screen>
120</sect3>
[e6f8f78]121
[bd23186f]122<sect3><title>SGMLSpm-&SGMLSpm-version;</title>
[e6f8f78]123
[0a830a12]124<para>If your system's <application>Perl</application> version is different
125than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
126command below to reflect the version you have installed.</para>
[e6f8f78]127
128<screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
[0a830a12]129 -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
[e6f8f78]130 -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
131 Makefile &amp;&amp;
132make install &amp;&amp;
133install -d -m 755 /usr/share/doc/perl5 &amp;&amp;
134make install_html &amp;&amp;
135rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &amp;&amp;
136install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
137</sect3>
[52d29f7]138
139</sect2>
140
141<sect2><title>(Alternate) Auto installation of <application>Perl</application>
142modules.</title>
[bd23186f]143
144<para>There is an alternate way of installing the modules using
145<application>Perl</application>'s built-in <command>install</command> command.
[cebbbb5]146The command automatically downloads the source from the <acronym>CPAN</acronym>
[bd23186f]147archive, extracts it, runs the commands mentioned above, and removes the build
148tree. You may still need to install dependent library packages before running
149the automated installation method.</para>
[52d29f7]150
[bd23186f]151<para>The first time you run this command, you'll be prompted to enter some
152information regarding download locations and methods. This information is
153retained in files located in <filename class='directory'>~/.cpan</filename>.
154Start the perl shell with the following command:</para>
[52d29f7]155
156<screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
157<para>Each module may now be installed from this shell with the command:</para>
[bd23186f]158<screen><userinput><command>install <replaceable>[ModuleName]</replaceable></command></userinput></screen>
[52d29f7]159
160<para>For additional commands and help, type <command>help</command>.</para>
161
162</sect2>
[3d60760]163
164</sect1>
165
Note: See TracBrowser for help on using the repository browser.