从现在开始,每天一点点……

perl升级(5.8升级到5.14)

上一篇 / 下一篇  2011-07-25 21:45:49 / 个人分类:perl基础

1.下载新的软件
  wget http://www.cpan.org/src/5.0/perl-5.14.1.tar.gz
2.安装和升级
mkdir -p /usr/local/perl
tar zxvf perl-5.14.1.tar.gz
cd perl-5.14.1
./configure -des -D prefix=/usr/local/perl
make
make test
make install
 mv /usr/bin/perl /usr/bin/perl.bak
ln -s /usr/local/perl/bin/perl /usr/bin/perl
3.查看perl的版本号
perl -v
This is perl 5, version 14, subversion 1 (v5.14.1) built for i686-linux

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

TAG:

 

评分:0

我来说两句

Open Toolbar