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。 专注于以下四个领域: 分布式存储 分布式数据库 云计算 大数据 重点通过技术架构与性能优化(底层)实现基于私有云的大数据平台能力

  • 相关阅读:
    0593. Valid Square (M)
    0832. Flipping an Image (E)
    1026. Maximum Difference Between Node and Ancestor (M)
    0563. Binary Tree Tilt (E)
    0445. Add Two Numbers II (M)
    1283. Find the Smallest Divisor Given a Threshold (M)
    C Primer Plus note9
    C Primer Plus note8
    C Primer Plus note7
    C Primer Plus note6
  • 原文地址:https://www.cnblogs.com/gordonchang/p/6681557.html
Copyright © 2011-2022 走看看