📄 temp-perl.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content= "application/xhtml+xml; charset=iso-8859-1" /> <title> 10.4. Temporary Perl-5.8.8 </title> <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="stylesheet" href="../stylesheets/lfs-print.css" type= "text/css" media="print" /> </head> <body id="lfs" class="CLFS-SVN-20060417-MIPS"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS </h4> <h3> Chapter 10. Installing Basic System Software </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="testsuitesagain.html" title= "About Test Suites, Again">Prev</a> <p> About Test Suites, Again </p> </li> <li class="next"> <a accesskey="n" href="linux-libc-headers.html" title= "Linux-Libc-Headers-2.6.12.0">Next</a> <p> Linux-Libc-Headers-2.6.12.0 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a> </li> </ul> </div> <div class="wrap" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 10.4. Temporary Perl-5.8.8 </h1> </div> <div class="package" lang="en" xml:lang="en"> <p> The Perl package contains the Practical Extraction and Report Language. </p> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installation depends on:</span></strong> <span class="seg">Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Iana-Etc, Make, Patch, and Sed</span> </div> </div> </div> </div> <div class="installation" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="sect2"> 10.4.1. Installation of Perl </h2> </div> <p> First adapt some hard-wired paths to the C library by applying the following patch: </p> <pre class="userinput"><kbd class="command">patch -Np1 -i ../perl-5.8.8-libc-1.patch</kbd></pre> <p> Prepare Perl for compilation (make sure to get the 'Data/Dumper Fcntl IO POSIX' part of the command correct—they are all letters): </p> <pre class="userinput"><kbd class="command">./configure.gnu --prefix=/tools \ -Dstatic_ext='Data/Dumper IO Fcntl POSIX' -Dcc="gcc"</kbd></pre> <div class="variablelist"> <p class="title"> <b>The meaning of the configure option:</b> </p> <dl> <dt> <span class="term"><em class= "parameter"><tt>-Dstatic_ext='Data/Dumper IO Fcntl POSIX'</tt></em></span> </dt> <dd> <p> This tells Perl to build the minimum set of static extensions needed for installing and testing the Glibc and Coreutils packages later in this chapter. </p> </dd> </dl> </div> <p> Now we are ready to make our perl utilities: </p> <pre class="userinput"><kbd class="command">make perl utilities</kbd></pre> <p> Although Perl comes with a test suite, it is not recommended to run it at this point. Only part of Perl was built and running <span><strong class="command">make test</strong></span> now will cause the rest of Perl to be built as well, which is unnecessary at this point. The test suite can be run later in this chapter if desired. </p> <p> Install these tools and their libraries: </p> <pre class="userinput"><kbd class="command">cp -v perl pod/pod2man /tools/bininstall -dv /tools/lib/perl5/5.8.8cp -Rv lib/* /tools/lib/perl5/5.8.8</kbd></pre> <p> Finally, create a necessary symlink: </p> <pre class="userinput"><kbd class="command">ln -sv /tools/bin/perl /usr/bin</kbd></pre> </div> <div class="content" lang="en" xml:lang="en"> <p> Details on this package are located in <a href= "perl.html#contents-perl" title= "10.27.2. Contents of Perl">Section 10.27.2, “Contents of Perl.”</a> </p> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="testsuitesagain.html" title= "About Test Suites, Again">Prev</a> <p> About Test Suites, Again </p> </li> <li class="next"> <a accesskey="n" href="linux-libc-headers.html" title= "Linux-Libc-Headers-2.6.12.0">Next</a> <p> Linux-Libc-Headers-2.6.12.0 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -