Skip to content

Install with Perlbrew

hertell edited this page Mar 23, 2017 · 8 revisions

Setup Perl with Perlbrew

Introduction: In this document we will show you how to install a standalone version of Perlbrew for the new user ic6.

Install Perlbrew

  1. As root user
    $ adduser ic6
    $ su - ic6

  2. Using curl install perlbrew quickly. Copy the following line into your terminal shell.
    $ curl -L http://install.perlbrew.pl | bash

  3. Initialize perlbrew
    $ echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bash_profile

  4. Update shell
    $ source ~/.bash_profile

  5. List available Perl versions
    $ perlbrew available
    perl-5.18.1
    perl-5.16.3
    perl-5.14.4
    ...

  6. Install Perl
    $ perlbrew install perl-5.18.1

  7. Change Perl for ic6 user to perl-5.18.1
    $ perlbrew switch perl-5.18.1

  8. Verify ENV
    $ perl -V

  9. Install cpanm
    $ perlbrew install-cpanm

  10. Install necessary modules
    $ cpanm Dancer2 Dancer2::Plugin::Interchange6 Interchange6 Interchange6::Schema

Read more on perlbrew and other install methods
Perlbrew offical site