source: BOOK/final-system/multilib/perl-64bit.xml@ 8779a20

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8779a20 was 566db8e, checked in by Jim Gifford <clfs@…>, 19 years ago

r667@server (orig r665): manuel | 2005-11-08 15:10:09 -0800
Removing SBUs and DUs. Chapter final-system, round 5.

  • Property mode set to 100644
File size: 3.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-perl" role="wrap">
11 <?dbhtml filename="perl-64bit.html"?>
12
13 <title>Perl-&perl-version;</title>
14
15 <indexterm zone="ch-system-perl">
16 <primary sortas="a-Perl">Perl</primary>
17 </indexterm>
18
19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
20 href="../common/perl.xml"
21 xpointer="xpointer(//*[@role='package'])"/>
22
23 <sect2 role="installation">
24 <title>Installation of Perl</title>
25
26 <para>In multilib builds we install compilers and libraries for each available
27 architecture. The description below says that perl installs several hundred
28 libraries, but they are used by invoking <command>perl</command>, not by linking
29 to them with <command>ld</command>. Although it is possible to install perl for
30 32 bits, move it to a different name, and then install the 64-bit version, it is
31 almost always invoked as just <command>perl</command>. That means only the
32 libraries and modules for the last version installed will be accessible. We
33 therefore only install one version.</para>
34
35 <para>Perl does not, by default, know about library directories with names other
36 than lib, such as lib64. The following patch will allow it to install to lib64.</para>
37
38<screen><userinput>patch -Np1 -i ../&perl-multilib-patch;</userinput></screen>
39
40 <para>There is a further (possibly cosmetic) anomaly - if we install perl and
41 then run <command>perl -V</command> it will claim that libc is in /lib. The
42 following patch fixes this, but only takes effect when <command>make install
43 </command> is run.</para>
44
45<screen><userinput>patch -Np1 -i ../&perl-lib64-patch;</userinput></screen>
46
47 <para>We still need to tell perl to actually use lib64</para>
48
49<screen><userinput>echo 'installstyle="lib64/perl5"' >>hints/linux.sh</userinput></screen>
50
51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
52 href="../common/perl.xml"
53 xpointer="xpointer(//*[@os='a'])"/>
54
55<screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR" \
56 -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64" \
57 -Dcc="gcc ${BUILD64}"</userinput></screen>
58
59 <variablelist>
60 <title>The meaning of the new configure option:</title>
61
62 <varlistentry>
63 <term><parameter>-Dlibpth="/usr/local/lib64 /lib64 /usr/lib64"</parameter></term>
64 <listitem>
65 <para>This tells Perl to link against the 64-bit libraries.</para>
66 </listitem>
67 </varlistentry>
68
69 </variablelist>
70
71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
72 href="../common/perl.xml"
73 xpointer="xpointer(//*[@os='c'])"/>
74
75 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
76 href="../common/perl.xml"
77 xpointer="xpointer(//*[@os='d'])"/>
78
79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
80 href="../common/perl.xml"
81 xpointer="xpointer(//*[@os='e'])"/>
82
83 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
84 href="../common/perl.xml"
85 xpointer="xpointer(//*[@os='f'])"/>
86
87 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
88 href="../common/perl.xml"
89 xpointer="xpointer(//*[@os='g'])"/>
90
91 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
92 href="../common/perl.xml"
93 xpointer="xpointer(//*[@os='h'])"/>
94
95 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
96 href="../common/perl.xml"
97 xpointer="xpointer(//*[@os='i'])"/>
98
99 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
100 href="../common/perl.xml"
101 xpointer="xpointer(//*[@os='j'])"/>
102
103 </sect2>
104
105 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
106 href="../common/perl.xml"
107 xpointer="xpointer(id('contents-perl'))"/>
108
109</sect1>
Note: See TracBrowser for help on using the repository browser.