Ignore:
Timestamp:
Aug 1, 2014, 10:50:53 PM (10 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-sysvinit, sysvinit
Children:
c9f9769
Parents:
147a241
git-author:
Chris Staub <chris@…> (08/01/14 22:50:25)
git-committer:
Chris Staub <chris@…> (08/01/14 22:50:53)
Message:

Make Perl use system-installed bzip2 as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/perl.xml

    r147a241 r9cc06db  
    2626    <title>Installation of Perl</title>
    2727
    28     <para os="s3">By default, Perl's Compress::Raw::Zlib module builds and
    29     links against its own internal copy of Zlib. The following command will
    30     tell it to use the system-installed Zlib:</para>
    31 
    32 <screen os="s4"><userinput>sed -i -e '/^BUILD_ZLIB/s/True/False/' \
    33        -e '/^INCLUDE/s,\./zlib-src,/usr/include,' \
    34        -e '/^LIB/s,\./zlib-src,/usr/lib,' \
    35        cpan/Compress-Raw-Zlib/config.in</userinput></screen>
     28    <para os="s3">By default, Perl's Compress::Raw::Zlib and
     29    Compress::Raw::Bzip2 modules build and link against internal copies of
     30    Zlib and Bzip2. The following command will make Perl use the
     31    system-installed copies of these libraries:</para>
     32
     33<screen os="s4"><userinput>export BUILD_ZLIB=False
     34export BUILD_BZIP2=0</userinput></screen>
    3635
    3736    <note os="a00">
     
    106105<screen os="h2"><userinput remap="test">make test</userinput></screen>
    107106
    108     <para os="j">Install the package:</para>
    109 
    110 <screen os="k"><userinput>make install</userinput></screen>
     107    <para os="j">Install the package and remove the variables set previously:</para>
     108
     109<screen os="k"><userinput>make install
     110unset BUILD_ZLIB BUILD_BZIP2</userinput></screen>
    111111
    112112  </sect2>
Note: See TracChangeset for help on using the changeset viewer.