我試圖用perlbrew
來安裝一些較老的Perl。由於舊式的版本號,我相信這是失敗的。據perlbrew available
:用Perlbrew安裝古代Perlls
perl-5.14.3-RC1
perl-5.16.1
perl-5.14.2
perl-5.12.4
perl-5.10.1
perl-5.8.9
perl-5.6.2
perl5.005_04
perl5.004_05
perl5.003_07
然而,當我運行perlbrew install perl5.003_07
,我得到:
Unknown installation target "perl5.003_07", abort. Please see
`perlbrew help` for the instruction on using the install command.
如果我嘗試通過提供直接鏈接到壓縮包,例如perlbrew install http://www.cpan.org/src/5.0/perl5.005_03.tar.gz
,它下載的壓縮檔,但解析的版本號的正則表達式失敗:
Use of uninitialized value $dist_version in concatenation (.) or string at /usr/local/share/perl5/App/perlbrew.pm line 686.
Fetching perl- as /home/cpanci/perl5/perlbrew/dists/perl5.005_03.tar.gz
Use of uninitialized value $dist_version in pattern match (m//) at /usr/local/share/perl5/App/perlbrew.pm line 925.
Installing /home/cpanci/perl5/perlbrew/build/perl5.005_03 into ~/perl5/perlbrew/perls/perl-
This could take a while. You can run the following command on another shell to track the status:
tail -f ~/perl5/perlbrew/build.perl-.log
Use of uninitialized value $dist_version in pattern match (m//) at /usr/local/share/perl5/App/perlbrew.pm line 952.
Use of uninitialized value $dist_version in pattern match (m//) at /usr/local/share/perl5/App/perlbrew.pm line 969.
Installing /home/cpanci/perl5/perlbrew/build/perl5.005_03 failed. Read /home/cpanci/perl5/perlbrew/build.perl-.log to spot any
issues.
任何想法?它對新的perls工作正常。
這是與App :: perlbrew版本0.52。
是否使用'--as perl-5.003_07'幫助? – ikegami
'--as'沒有幫助;它看起來像在原始URL上運行版本號正則表達式,而不是'--as'參數(這很有道理)。 – friedo