Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

PerlBrew

Wes edited this page May 12, 2014 · 9 revisions

Using the latest version of perl can drastically improve performance. This is not required, but highly recommended. Perlbrew will compile the latest version of perl on your system, the process takes anywhere from 15-45min depending on system resources.

via CommandLine

$ curl -L http://cpanmin.us | perl - --sudo App::cpanminus
$ export PERLBREW_ROOT=/opt/perl5/perlbrew
$ cpanm -n -f -q App::perlbrew
$ perlbrew init
$ source $PERLBREW_ROOT/etc/bashrc
$ perlbrew install -v 5.18.2 -n -Dusethreads
$ perlbrew install-cpanm
$ echo "export PERLBREW_ROOT=/opt/perl5" >> ~/.profile
$ echo 'source ${PERLBREW_ROOT}/etc/bashrc' >> ~/.profile

via Bash

#!/bin/bash

set -e

PERL_VERSION=perl-5.18.2
PERLBREW_ROOT=/opt/perl5/perlbrew

curl -L http://cpanmin.us | perl - --sudo App::cpanminus
cpanm -n -f -q App::perlbrew

PERLBREW_ROOT=${PERLBREW_ROOT} perlbrew init

. ${PERLBREW_ROOT}/etc/bashrc
PERLBREW_ROOT=${PERLBREW_ROOT} perlbrew install -v ${PERL_VERSION} -n -Dusethreads
PERLBREW_ROOT=${PERLBREW_ROOT} perlbrew install-cpanm

echo "source ${PERLBREW_ROOT}/etc/bashrc" >> ${HOME}/.profile
Clone this wiki locally