ubuntu 非常簡單的方式安裝多個perl版本


參考http://stackoverflow.com/questions/22934080/how-to-downgrade-to-perl-5-10-1

Perlbrew will allow you to install multiple versions of Perl as user installed Perls. 

安裝perlbrew

apt-get install perlbrew

To install a particular version of Perl:

perlbrew install 5.10  # I'm installing Perl 5.10!

安裝perl前需要建立文件夾:~/perl5/perlbrew/dists和:~/perl5/perlbrew/bulid

To switch from one version of Perl to another:

perlbrew use 5.10   # Use this version in the current shell

or 

perlbrew switch 5.10  # This is now your default version of Perl

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM