# Installation of Perl
I'm going to begin this with the process in Ubuntu, then in OS X and finally in Windows. I haven't tested it on all perl versions, but it should be a similar process.
Use Perlbrew (opens new window) if you like to switch easily beween different versions of Perl.
I want to state that this tutorial is about Perl in it's open-source version. There are other versions like activeperl
which its advantages and disadvantages, that are not part of this tutorial.
# Linux
There is more than one way to do it:
sudo apt install perl
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
wget -O - https://install.perlbrew.pl | bash
See also Perlbrew (opens new window)
# OS X
There are several options:
# You need to install Command Line Tools for Xcode
curl -L https://install.perlbrew.pl | bash
# 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
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
orDWIM
. Here we cover thestrawberry
version, sinceDWIM
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