perl 5.10.0 安装

来源:互联网 发布:linux svn服务端 编辑:程序博客网 时间:2024/06/06 17:53
perl 5.10.0下载地址:
http://www.cpan.org/src/perl-5.10.0.tar.gz

环境:redhat 9

步骤:
#wget http://www.cpan.org/src/perl-5.10.0.tar.gz
#tar zxvf perl-5.10.0.tar.gz 
#cd perl-5.10.0
#./configure.gnu -des -Dprefix=/usr/local/perl
#make
#make test
#make install
#/usr/local/perl/bin/perl -v
This is perl, v5.10.0 built for i686-linux

Copyright 1987-2007, 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.
#perl -v

This is perl, v5.8.8 built for i386-linux-thread-multi

Copyright 1987-2006, 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.

#mv /usr/bin/perl /usr/bin/perl.bak
#ln -s /usr/local/perl/bin/perl /usr/bin/perl
#perl -v
This is perl, v5.10.0 built for i686-linux

Copyright 1987-2007, 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.