linux下编译安装perl(5.10.0)


       下载地址:
            http://www.cpan.org/src/
   
     
       下载完以后解压安装
       #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 [url]http://www.perl.org/[/url], the Perl Home Page.

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

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27042095/viewspace-752000/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/27042095/viewspace-752000/

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值