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

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 cf3ab518 was cf3ab518, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated intltool to 0.32.1 and moved the instructions to Chapter 10 - General Utilities; added expat as a dependency of the XML::Parser Perl Module

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

  • Property mode set to 100644
File size: 6.4 KB
Line 
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<!ENTITY LFS-Perl-version "5.8.5">
8]>
9
10<sect1 id="perl-modules" xreflabel="Perl modules">
11<sect1info>
12<othername>$LastChangedBy$</othername>
13<date>$Date$</date>
14</sect1info>
15<?dbhtml filename="perl-modules.html" ?>
16<title>Perl modules</title>
17
18<sect2>
19<title>Introduction to <application>Perl</application> modules</title>
20
21<para>The <application>Perl</application> module packages add useful objects
22to the <application>Perl</application> language. Modules utilized by packages
23throughout <acronym>BLFS</acronym> are listed here, along with their
24dependencies.</para>
25
26<sect3><title><application>Perl</application> Module Packages</title>
27<itemizedlist spacing='compact'>
28<listitem><para><ulink
29url="http://search.cpan.org/CPAN/authors/id/C/CS/CSOE/PDL-&PDL-version;.tar.gz">PDL-&PDL-version;</ulink>
30</para><itemizedlist spacing='compact'>
31
32<listitem><para><ulink
33url="http://www.cpan.org/authors/id/K/KG/KGB/ExtUtils-F77-&ExtUtils-F77-version;.tar.gz">ExtUtils-F77-&ExtUtils-F77-version;</ulink>
34</para></listitem>
35
36<listitem><para><ulink
37url="http://www.cpan.org/authors/id/I/IN/INGY/Inline-&Inline-version;.tar.gz">Inline-&Inline-version;</ulink>
38</para><itemizedlist spacing='compact'>
39
40<listitem><para><ulink
41url="http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-&Parse-RecDescent-version;.tar.gz">Parse-RecDescent-&Parse-RecDescent-version;</ulink>
42</para></listitem></itemizedlist></listitem>
43
44<listitem><para><ulink
45url="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>
46</para></listitem></itemizedlist></listitem>
47
48<listitem><para><ulink
49url="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">Gtk-Perl-&Gtk-Perl-version;</ulink>
50</para><itemizedlist spacing='compact'>
51
52<listitem><para><ulink
53url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">XML-Writer-&XML-Writer-version;</ulink>
54</para></listitem>
55
56<listitem><para><ulink
57url="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'>
58
59<listitem><para><xref linkend="expat"/></para></listitem></itemizedlist>
60</listitem>
61
62<listitem><para><xref linkend="GTK"/></para>
63</listitem></itemizedlist></listitem>
64
65<listitem><para><ulink
66url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">SGMLSpm-&SGMLSpm-version;</ulink>
67</para></listitem>
68
69<listitem><para><ulink
70url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">Tk-&Perl-Tk-version;</ulink>
71</para><itemizedlist spacing='compact'>
72
73<listitem><para><xref linkend="tk"/> and
74<xref linkend="libjpeg"/></para></listitem></itemizedlist>
75</listitem></itemizedlist>
76
77</sect3>
78
79</sect2>
80
81<sect2>
82<title>Installation of <application>Perl</application> modules</title>
83
84<para>Install <application>Perl</application> modules by running the following
85commands:</para>
86
87<screen><userinput><command>perl Makefile.PL &amp;&amp;
88make &amp;&amp;
89make test &amp;&amp;
90make install</command></userinput></screen>
91
92<para>The modules listed below require modifications to the instructions in
93order to install successfully.</para>
94
95<sect3>
96<title>Gtk-Perl-&Gtk-Perl-version;:</title>
97
98<screen><userinput><command>perl Makefile.PL --without-guessing &amp;&amp;
99make &amp;&amp;
100make test &amp;&amp;
101make install</command></userinput></screen></sect3>
102
103<sect3>
104<title>SGMLSpm-&SGMLSpm-version;</title>
105
106<para>If your system's <application>Perl</application> version is different
107than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
108command below to reflect the version you have installed.</para>
109
110<screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
111 -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
112 -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
113 Makefile &amp;&amp;
114make install &amp;&amp;
115install -d -m 755 /usr/share/doc/perl5 &amp;&amp;
116make install_html &amp;&amp;
117rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &amp;&amp;
118install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
119</sect3>
120
121</sect2>
122
123<sect2><title>(Alternate) Auto installation of <application>Perl</application>
124modules.</title>
125
126<para>There is an alternate way of installing the modules using
127<application>Perl</application>'s built-in <command>install</command> command.
128The command automatically downloads the source from the <acronym>CPAN</acronym>
129archive, extracts it, runs the commands mentioned above, and removes
130the build tree.</para>
131
132<para>Start the perl shell with the commands:</para>
133
134<screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
135<para>Each module may now be installed from this shell with the command:</para>
136<screen><userinput><command>install &lt;moduleName&gt;</command></userinput></screen>
137
138<para>For additional commands and help, type <command>help</command>.</para>
139
140</sect2>
141
142</sect1>
143
Note: See TracBrowser for help on using the repository browser.