Horje

Perl - Installation of Perl
Start
  Linux

There is more than one way to do it:

  • Using the package manager:
    sudo apt install perl
    
    
  • Installing from source:
    wget http://www.cpan.org/src/5.0/perl-version.tar.gz
    tar -xzf perl-version.tar.gz
    cd perl-version
    ./Configure -de
    make
    make test
    make install
    
    
  • Installing in your $home directory (not sudo needed) with [Perlbrew](https://perlbrew.pl):
    wget -O - https://install.perlbrew.pl | bash
    
    

    See also Perlbrew (opens new window)

  •   OS X

    There are several options:

  • [Perlbrew](https://perlbrew.pl/):
    # You need to install Command Line Tools for Xcode  
    curl -L https://install.perlbrew.pl | bash
    
    
  • [Perlbrew](https://perlbrew.pl/) with thread support:
    # You need to install Command Line Tools for Xcode  
    curl -L https://install.perlbrew.pl | bash
    
    

    After the install of perlbrew, if you want to install Perl with thread support, just run:

    perlbrew install -v perl-5.26.0 -Dusethreads
    
    
  • From source:
    tar -xzf perl-version.tar.gz
    cd perl-version
    ./Configure -de
    make
    make test
    make install
    
    
  •   Windows
    • As we said before, we go with the open-source version. For Windows you can choose strawberry or DWIM. Here we cover the strawberry version, since DWIM is based on it. The easy way here is installing from the official executable (opens new window).

    See also berrybrew (opens new window) - the perlbrew for Windows Strawberry Perl


    Read Article
    https://develop.horje.com/learn/1434/reference