Building Perl-5.10.1

5.10系の最新版5.10.1をビルドした。

$ wget http://www.cpan.org/src/perl-5.10.1.tar.gz
$ gzip -dc perl-5.10.1.tar.gz | tar xvf -
$ cd perl-5.10.1
$ sh Configure -DDEBUGGING -Doptimize='-g -pipe -Os' -Dusethreads -Dusemultiplicity -Dprefix=/usr/local -des
$ make
$ make test
$ sudo make install
$ make clean

環境変数PATHに"/usr/local/bin"を追加。("/usr/bin"より先に)
バージョン確認。

$ perl -version

This is perl, v5.10.1 (*) built for i686-linux-thread-multi

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

CPANの設定。

$ sudo cpan


The Perl Programming Language - www.perl.org
Perl Source - www.cpan.org