Linux上升级perl版本 .
2013-03-22 09:10
267 查看
Linux系统自带的perl版本一般为:v5.8.8。但是目前很多模块要求perl版本必须要5.10以上,例如:Excel::Writer::XLSX。
升级步骤如下:
1:查询perl的真实安装路径
whereis perl
perl: /usr/bin/perl /etc/perl /usr/lib/perl /usr/X11R6/bin/perl /usr/bin/X11/perl /usr/local/bin/perl /usr/local/lib/perl /usr/share/perl /usr/share/man/man1/perl.1.gz
真实安装路径为:/usr/bin/perl
2:下载新版本perl
http://www.cpan.org/src/5.0/perl-5.14.1.tar.gz
3:安装包
# tar xvf perl-5.14.1.tar.gz
# cd perl-5.14.1
# ./Configure -des -Dprefix=/usr ----/usr 为perl的安装路径根目录
# make
# make install
4:查询perl是否安装成功
# perl -version
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.
升级步骤如下:
1:查询perl的真实安装路径
whereis perl
perl: /usr/bin/perl /etc/perl /usr/lib/perl /usr/X11R6/bin/perl /usr/bin/X11/perl /usr/local/bin/perl /usr/local/lib/perl /usr/share/perl /usr/share/man/man1/perl.1.gz
真实安装路径为:/usr/bin/perl
2:下载新版本perl
http://www.cpan.org/src/5.0/perl-5.14.1.tar.gz
3:安装包
# tar xvf perl-5.14.1.tar.gz
# cd perl-5.14.1
# ./Configure -des -Dprefix=/usr ----/usr 为perl的安装路径根目录
# make
# make install
4:查询perl是否安装成功
# perl -version
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.
相关文章推荐
- linux上升级perl版本
- linux下如何升级系统默认安装的perl版本
- linux下如何升级系统默认安装的perl版本
- Linux(CentOS6.5)升级OpenSSL版本
- Linux下OpenSSH版本升级
- Linux下jenkins改端口、解决内存溢出、版本升级
- Linux下jenkins改端口、解决内存溢出、版本升级
- linux centos6.5的php5.3.3这个版本怎么升级到5.6 # rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64
- 阿里云linux下 升级PHP版本
- linux python版本升级
- linux 内核版本的升级(linux-3.2.0升级到linux-3.2.1)
- Linux6.3_64安装Oracle10.2.0.1数据库并升级至10.2.0.4版本
- linux环境下oracle版本升级(10.2.0.1-10.2.0.4)
- Linux下升级python版本
- Linux下JDK1.7升级1.8版本
- Linux从低版本向高版本平滑升级(Fedora 11到Fedora 12为例)
- linux系统将python升级到2.7.10版本
- linux,centos升级php版本到最新
- Mysql升级到最新版本mysql-5.7.16-linux-glibc2.5-x86_64.tar.gz
- Linux 升级git 版本