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/
轉載于:https://www.cnblogs.com/gordonchang/p/6681557.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的perl的安装和版本切换工具-perlbrew的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HDU 3501 Calculation
- 下一篇: 概率DP