Pacific-Design.com

    
Home Index

1. Perl5

2. perlbrew

Perl5 / perlbrew /

Perlbrew

Installation

    $ curl -kL http://install.perlbrew.pl | bash

    # Initialize
    perlbrew init

    # Pick a preferred CPAN mirror
    perlbrew mirror

    # See what is available
    perlbrew available

    $ nohup perlbrew install perl-5.17.5 &
    $ tail -f ~/perl5/perlbrew/build.perl-5.17.5.log 

    # See what were installed
    perlbrew list

    # Temporarily use another version only in current shell.
    $ perlbrew use perl-5.17.5
    perl -v

    # Install packages
    $ cpan App::cpanminus
    $ cpanm Module::ScanDeps

Reference: http://beta.metacpan.org/module/App::perlbrew

Install cpanminus

#!/usr/bin/env perl
cpan App::cpanminus
cpanm Module::ScanDeps

cpanm install BerkeleyDB
cpanm install DBI
cpanm install DBD::mysql
cpanm install Digest::SHA2
cpanm install Date::Calc
cpanm install Lingua::EN::Fathom
cpanm install LWP::UserAgent
cpanm install Domain::PublicSuffix
cpanm install DateTime

vi ~/.bash_profile
source ~/perl5/perlbrew/etc/bashrc
perlbrew use perl-5.16.1