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 查看当前版本已经切回。
完毕!
@Gordon_chang
1997年毕业于北京联合大学,先后在中国万网,新媒传信,亚信等公司工作,现在在一家创业型公司担任云计算与大数据运维方面的 PM & Engineer。 专注于以下四个领域:
分布式存储
分布式数据库
云计算
大数据
重点通过技术架构与性能优化(底层)实现基于私有云的大数据平台能力
浙公网安备 33010602011771号