perlバージョンのアップグレード

1282 ワード

perlバージョンのアップグレード
perlバージョンアップグレードレコード
作業の必要性、perlバージョンが古すぎて関連機能をサポートしていないので、バージョンアップを行います.
注意:システムの安定性と管理を向上させるために、バックアップを適切に行い、一般的に
  • 先rm-rf
  • tar.gzファイルをダウンロードし、/usr/local/bin/ディレクトリの下
  • に手動でインストールします.
  • /usr/bin/perlソフト接続を確立/usr/local/bin/perl
  • 1、インストール
    find / -name perl
    #  perl  ,    
    
    tar -zxvf perl-5.26.0.tar.gz
    #     
    
    cd perl-5.26.0
    #      
    
    ./Configure -des -Dprefix=/usr/local/perl
    #        
    
    make
    make test
    make install
    #   cc  ,       yum -y install gcc
    #            ,          .

    2、置換
    ##          ,        ,          
    #so      
    mv /usr/bin/perl /usr/bin/perl.bak
    #  ,      
    ln -s /usr/local/perl/bin/perl /usr/bin/perl
    #       ,    perl  

    3、検査
    #  
    perl -v
    
    This is perl 5, version 26, subversion 0 (v5.26.0) built for i686-linux
    
    Copyright 1987-2017, 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.
    
    
    #