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

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 47ce4dc was 5433fa6, checked in by Chris Staub <chris@…>, 11 years ago

Remove Perl libc patch as it is needed no longer, since nothing is hardcoded for libc. Script has been redone and uses plibpth.

  • Property mode set to 100644
File size: 2.2 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
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6bef17d]19 href="../../final-system/common/perl.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Perl</title>
24
[f698c15d]25 <para os="s1">Change a hardcoded path from
26 <filename class="directory">/usr/include</filename> to
27 <filename class="directory">/tools/include</filename>:</para>
[6bef17d]28
[c5c8ee8]29<screen os="s2"><userinput>sed -i 's@/usr/include@/tools/include@g' ext/Errno/Errno_pm.PL</userinput></screen>
30
[1532fcd]31<para os="c">Prepare Temporary Perl for compilation:</para>
[c5c8ee8]32
33<screen os="d"><userinput>./configure.gnu --prefix=/tools -Dcc="gcc"</userinput></screen>
[76cf100]34
35 <variablelist os="e">
[6bef17d]36 <title>The meaning of the configure option:</title>
37
38 <varlistentry>
[4e1dce4]39 <term><parameter>-Dcc="gcc"</parameter></term>
[6bef17d]40 <listitem>
[4e1dce4]41 <para>Tells Perl to use <command>gcc</command> instead of the
42 default <command>cc</command>.</para>
[6bef17d]43 </listitem>
44 </varlistentry>
45
46 </variablelist>
47
[4e1dce4]48 <para os="f">Compile the package:</para>
[6bef17d]49
[369ec62]50<screen os="g"><userinput>make</userinput></screen>
[6bef17d]51
[6c4e93e]52 <para os="h">Although Perl comes with a test suite, it is not recommended
[4e1dce4]53 to run it at this point, as this Perl installation is only temporary. The
54 test suite can be run later in this chapter if desired.</para>
[6bef17d]55
[4e1dce4]56 <para os="i">Install the package:</para>
[6c4e93e]57
[369ec62]58<screen os="j"><userinput>make install</userinput></screen>
[6bef17d]59
[a22d9a5]60 <para os="k">Finally, create a necessary symlink:</para>
61
62<screen os="l"><userinput>ln -sfv /tools/bin/perl /usr/bin</userinput></screen>
63
[6bef17d]64 </sect2>
65
66 <sect2 role="content">
67 <title/>
68
69 <para>Details on this package are located in <xref
70 linkend="contents-perl" role="."/></para>
71
72 </sect2>
73
74</sect1>
Note: See TracBrowser for help on using the repository browser.