Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10479263
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:16:00

       本机的系统为centos4.5.想体验一下最新版本
       下载地址:
            
       下载链接:
             
       下载方式不用说了吧,各显神通,笔者习惯用wget.所以wget .
       下载完以后解压安装
       #tar zxvf perl-5.10.0.tar.gz
       #cd perl-5.10.0
       #./Configure -des -Dprefix=/usr/local/perl
       参数-Dprefix指定安装目录为/usr/local/perl
       #make
       #make test
       #make install
       如果这个过程没有错误的话,那么恭喜你安装完成了.是不是很简单?
       接下来替换系统原有的perl,有最新的了咱就用嘛.
       #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 , the Perl Home Page.

恩,如果你那执行perl -v 和我的提示一样的话.就是安装成功了
       然后就可以了用它来安装一些其它你需要的perl模块了
       #perl -MCPAN -e shell
       第一次执行的话,会提示安装cpan并要求连接网络下载最新的模块列表.然后就可以安装东西了
       cpan[1]> install DBI
       是不是很简单呢.



本文出自 “rainbird” 博客,谢绝转载!

阅读(1334) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~