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

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 112d70e was 433aebb2, checked in by Chris Staub <chris@…>, 10 years ago

Reword note on temp-perl page

  • Property mode set to 100644
File size: 2.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
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/2001/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 <note os="a">
26 <para>In this section, we will add Perl to the temporary system in
27 <filename class="directory">/tools</filename>. This package installation
28 should technically be part of
29 <xref linkend="chapter-temp-system"/>, but Perl has often had problems
30 with cross-compiling, so we will compile and install it while in the
31 final build environment.</para>
32 </note>
33
34 <para os="s1">Change a hardcoded path from
35 <filename class="directory">/usr/include</filename> to
36 <filename class="directory">/tools/include</filename>:</para>
37
38<screen os="s2"><userinput>sed -i 's@/usr/include@/tools/include@g' ext/Errno/Errno_pm.PL</userinput></screen>
39
40<para os="c">Prepare Temporary Perl for compilation:</para>
41
42<screen os="d"><userinput>./configure.gnu --prefix=/tools -Dcc="gcc"</userinput></screen>
43
44 <variablelist os="e">
45 <title>The meaning of the configure option:</title>
46
47 <varlistentry>
48 <term><parameter>-Dcc="gcc"</parameter></term>
49 <listitem>
50 <para>Tells Perl to use <command>gcc</command> instead of the
51 default <command>cc</command>.</para>
52 </listitem>
53 </varlistentry>
54
55 </variablelist>
56
57 <para os="f">Compile the package:</para>
58
59<screen os="g"><userinput>make</userinput></screen>
60
61 <para os="h">Although Perl comes with a test suite, it is not recommended
62 to run it at this point, as this Perl installation is only temporary. The
63 test suite can be run later in this chapter if desired.</para>
64
65 <para os="i">Install the package:</para>
66
67<screen os="j"><userinput>make install</userinput></screen>
68
69 <para os="k">Finally, create a necessary symlink:</para>
70
71<screen os="l"><userinput>ln -sfv /tools/bin/perl /usr/bin</userinput></screen>
72
73 </sect2>
74
75 <sect2 role="content">
76 <title/>
77
78 <para>Details on this package are located in <xref
79 linkend="contents-perl" role="."/></para>
80
81 </sect2>
82
83</sect1>
Note: See TracBrowser for help on using the repository browser.