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

  • 相关阅读:
    NUnit
    Fxcop
    msdeploy命令实现远程部署时保留指定文件
    virtualBox 创建新虚拟机
    sharepoint项目部署
    执行批处理文件
    NCover
    配置Web DashBoard
    ccnet+ncover+fxcop+web deploy+mstest
    命令行部署Reporting Services项目
  • 原文地址:https://www.cnblogs.com/gordonchang/p/6681557.html
Copyright © 2020-2023  润新知