Linux上升级perl版本 .
来源:互联网 发布:最新淘宝客网站程序 编辑:程序博客网 时间:2024/06/16 17:06
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版本
- 升级perl版本
- linux下如何升级系统默认安装的perl版本
- perl 升级到5.20版本
- linux版本的升级
- linux python版本升级
- linux python版本升级
- Linux升级Python 版本
- linux升级python版本
- Linux升级Python版本
- Linux升级gcc版本
- Linux 升级git 版本
- 【Linux】升级pyhton版本
- appstore上app版本升级
- linux 上升级svn
- linux上 php升级
- 初次升级linux内核版本
- 《windows 程序设计》3.1.2
- E:Encountered a section with no Package: header, E:Problem withMergeList /var/lib/apt/lists/******
- [MFC]DECLARE_MESSAGE_MAP() 的理解
- C# 接口学习
- struts.xml基础配置使用
- Linux上升级perl版本 .
- 2013年的春节
- jQuery 1.9 移除$.browser方法
- /proc/sys/vm/drop_caches用法说明
- POJ--2378--Tree Cutting--树形DP
- 关于std::map中的find和[]的问题
- ImageView点击效果
- 使用ELDK编译器编译U-BOOT
- 填充对象样例程序