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 Apr 14, 2014 · 9 revisions

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

#!/bin/bash

set -e

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

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

and then in your profile

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