2014-09-15 10 views
5

मैं 5.20t के रूप में पर्ल के दो संस्करण का उपयोग कर --as Perlbrew सूची और गलत संस्करण संख्या

  • 5.20.0 स्थापित

    • 5.20.05.20 के रूप में स्थापित किया है और सूत्रण के साथ (केवल प्रमुख संख्या के साथ संस्करण नामकरण) स्थापित

      यह perlbrew list

      का आउटपुट है
      * 5.20 (5.20.0) 
          5.20t (5.20.0) 
      

      मैं तो का उपयोग कर

      $ perlbrew upgrade-perl 
      Upgrading 5.20 to 5.20.1 
      Installing /Users/corti/perl5/perlbrew/build/perl-5.20.1 into ~/perl5/perlbrew/perls/5.20 
      
      This could take a while. You can run the following command on another shell to track the status: 
      
          tail -f ~/perl5/perlbrew/build.perl-5.20.1.log 
      
      5.20 is successfully installed. 
      

      पर्ल सही तरीके से अपग्रेड किया जा रहा है (v5.20.1) 5.20.1 करने के लिए पर्ल उन्नत बनाया:

      $ perl -version 
      
      This is perl 5, version 20, subversion 1 (v5.20.1) built for darwin-2level 
      
      Copyright 1987-2014, Larry Wall 
      
      Perl may be copied only under the terms of either the Artistic License or the 
      GNU General Public License, which may be found in the Perl 5 source kit. 
      
      Complete documentation for Perl, including FAQ lists, should be found on 
      this system using "man perl" or "perldoc perl". If you have access to the 
      Internet, point your browser at http://www.perl.org/, the Perl Home Page. 
      

      लेकिन perlbrew list नए संस्करण को नहीं पहचानता है और perlbrew upgrade-perl बुला अपग्रेड फिर से

      $ perlbrew list 
      * 5.20 (5.20.0) 
          5.20t (5.20.0) 
      

      perlbrew अद्यतन क्यों नहीं पहचानता है?

  • उत्तर

    2

    क्योंकि एक फ़ाइल के अस्तित्व के लिए perlbrew चेकों

    perls/*/.version 
    

    कहा जाता है और निर्धारित करने के लिए पर्ल का कौन सा संस्करण स्थापित किया गया है इसकी सामग्री का उपयोग करता है। यह फ़ाइल नहीं मिल रहा है, तो यह पर्ल निष्पादन

    perls/*/bin/perl 
    

    चल स्थापित संस्करण का निर्धारण करने के लिए वापस गिर जाता है और .version फ़ाइल बनाता है।

    अपग्रेड-perl कमांड फ़ाइल को अद्यतन करने में विफल रहता है, इसलिए बाद के रन स्थापित संस्करण का सही ढंग से पता नहीं लगाते हैं। मैंने bug report

    +0

    दायर किया है धन्यवाद, मैंने फ़ाइल को मैन्युअल रूप से बदल दिया है ... – Matteo

    संबंधित मुद्दे