2012-10-08 45 views
3

我試圖用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。

+0

是否使用'--as perl-5.003_07'幫助? – ikegami

+0

'--as'沒有幫助;它看起來像在原始URL上運行版本號正則表達式,而不是'--as'參數(這很有道理)。 – friedo

回答

2

我認爲你被困在perlbrew上。我可以通過重命名壓縮包perl-5.5.3.tar.gz,使一個符號鏈接perl5/perlbrew/build像這樣得到的一些方法:

lrwxrwxrwx 1 darch users 12 Oct 8 14:16 perl-5.5.3 -> perl5.005_03 

,但在這一點上它試圖運行5.5.3的Configure有選擇不理解。它看起來並不像我試圖用perlbrew來構建這樣的老perls實際上是支持的,儘管它很高興地列出它們。

+0

是的,這就是我的想法。在這一點上,它可能會更容易手動構建它。好吧。 :) – friedo