source: BOOK/final-system/common/temp-perl.xml@ d8b9d99

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d8b9d99 was 1532fcd, checked in by Jim Gifford <clfs@…>, 16 years ago

Fixed typo

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[6bef17d]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[6bef17d]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-temp-perl" role="wrap">
9 <?dbhtml filename="temp-perl.html"?>
10
11 <title>Temporary Perl-&perl-version;</title>
12
13 <indexterm zone="ch-system-temp-perl">
14 <primary sortas="a-Perl">Perl</primary>
15 <secondary>temporary tools</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../final-system/common/perl.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Perl</title>
24
25 <para os="a">First adapt some hard-wired paths to the C library by applying
26 the following patch:</para>
27
28<screen os="b"><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
29
[c5c8ee8]30 <para os="s1">Change the hardcoded path from /usr/include to /tools/include:</para>
[6bef17d]31
[c5c8ee8]32<screen os="s2"><userinput>sed -i 's@/usr/include@/tools/include@g' ext/Errno/Errno_pm.PL</userinput></screen>
33
[1532fcd]34<para os="c">Prepare Temporary Perl for compilation:</para>
[c5c8ee8]35
36<screen os="d"><userinput>./configure.gnu --prefix=/tools -Dcc="gcc"</userinput></screen>
[76cf100]37
38 <variablelist os="e">
[6bef17d]39 <title>The meaning of the configure option:</title>
40
41 <varlistentry>
42 <term><parameter>-Dstatic_ext='Data/Dumper IO Fcntl POSIX'</parameter></term>
43 <listitem>
44 <para>This tells Perl to build the minimum set of static
[9172172]45 extensions needed for installing and testing the Glibc and
46 Coreutils packages later in this chapter.</para>
[6bef17d]47 </listitem>
48 </varlistentry>
49
50 </variablelist>
51
[76cf100]52 <para os="f">Now we are ready to make our perl utilities:</para>
[6bef17d]53
[369ec62]54<screen os="g"><userinput>make</userinput></screen>
[6bef17d]55
[6c4e93e]56 <para os="h">Although Perl comes with a test suite, it is not recommended
57 to run it at this point. Only part of Perl was built and running
58 <command>make test</command> now will cause the rest of Perl to be built
59 as well, which is unnecessary at this point. The test suite can be run
60 later in this chapter if desired.</para>
[6bef17d]61
[6c4e93e]62 <para os="i">Install these tools and their libraries:</para>
63
[369ec62]64<screen os="j"><userinput>make install</userinput></screen>
[6bef17d]65
[6c4e93e]66 <para os="k">Finally, create a necessary symlink:</para>
[de1676e]67
[6c4e93e]68<screen os="l"><userinput>ln -sv /tools/bin/perl /usr/bin</userinput></screen>
[de1676e]69
[6bef17d]70 </sect2>
71
72 <sect2 role="content">
73 <title/>
74
75 <para>Details on this package are located in <xref
76 linkend="contents-perl" role="."/></para>
77
78 </sect2>
79
80</sect1>
Note: See TracBrowser for help on using the repository browser.