zoukankan      html  css  js  c++  java
  • perl的安装和版本切换工具-perlbrew

    setenv PERL /opt/perl5 --设置新perl的起始安装路径

    curl -kL http://install.perlbrew.pl | bash

    source /opt/perl5/perlbrew/etc/bashrc

    perlbrew init
    perlbrew root (/opt/perl5/perlbrew) is initialized.

    Append the following piece of code to the end of your ~/.bash_profile and start a
    new shell, perlbrew should be up and fully functional from there:

        source ~/perl5/perlbrew/etc/bashrc

    Simply run `perlbrew` for usage details.

    Happy brewing!


    perlbrew install perl-5.16.0

    perlbrew switch perl-5.16.0

    至此,当前perl已经切换到新安装的perl-5.16.0

    如果想再切换回旧版的,

    source /opt/perl5/perlbrew/etc/bashrc

    perlbrew switch-off

    perl -v 查看当前版本已经切回。

    完毕!

    参考:http://perlbrew.pl/

    本文系作者原创,转载请注明出处。如您阅读的是转载,请最好再看下原文,原文随时会更新和勘误的。

    @Gordon_chang
    1997年毕业于北京联合大学,先后在中国万网,新媒传信,亚信等公司工作,现在在一家创业型公司担任云计算与大数据运维方面的 PM & Engineer。 专注于以下四个领域: 分布式存储 分布式数据库 云计算 大数据 重点通过技术架构与性能优化(底层)实现基于私有云的大数据平台能力

  • 相关阅读:
    HDU4777 Rabbit Kingdom
    HDU6200 mustedge mustedge mustedge
    HDU6187 Destroy Walls
    最长公共上升子序列的学习
    关于约瑟夫问题的学习
    洛谷1602 Sramoc问题
    HDU2089 不要62
    poj3532 Round Numbers
    洛谷1014 Cantor表
    花盆Flowerpot[USACO12MAR]
  • 原文地址:https://www.cnblogs.com/gordonchang/p/6681557.html
Copyright © 2011-2022 走看看