Total Pageviews

Saturday, 25 January 2014

Perlbrew

perlbrew is a admin-free perl installation management tool. The latest version is 0.67, read the release note: Release 0.67.

Install, quickly

Copy & Paste this line into your terminal:
\curl -L http://install.perlbrew.pl | bash
Or, if your system does not have curl but something else:
# Linux
\wget -O - http://install.perlbrew.pl | bash

# FreeBSD
\fetch -o- http://install.perlbrew.pl | sh
If you prefer to install with cpan, there are two steps:
sudo cpan App::perlbrew
perlbrew init
If it is installed with cpan, the perlbrew executable should be installed as /usr/bin/perlbrew or /usr/local/bin/perlbrew. For all users who want to use perlbrew, a prior perlbrew init needs to be executed.
The default perlbrew root directory is ~/perl5/perlbrew, which can be changed by setting PERLBREW_ROOT environment variables before the installation and initialization. For more advanced installation process, please read the perlbrew document.

What is perlbrew

perlbrew is a tool to manage multiple perl installations in your $HOME directory. They are completely isolated perl universes. This approach has many benefits:
  • No need to run sudo to install CPAN modules, any more.
  • Try the monthly released new perls.
  • Learn new language features.
  • Test your production code against different perl versions.
  • Leave vendor perl (the one that comes with OS) alone
    • Vendor perl usually serves its own purposes, and it might be a bad idea to mess it up too much.
    • Especially PITA when trying to upgrade system perl.
    • Some vendors introduced their own perl bugs, twice!
  • Hacking perl internals.
  • Just to keep up with fashion.
While the default is good enough, you may customize it to install to alternative places, or even let multiple users share the whole perlbrew environment.

perlbrew is simple

To install the latest stable release, and use it permanently:
perlbrew install perl-5.16.0
perlbrew switch perl-5.16.0
To play with the bleeding-edge version, but only in the current shell:
perlbrew install perl-blead
perlbrew use perl-blead
Runs myprogram.pl against all installations of perl, especially helpful when running tests:
perlbrew exec myprogram.pl
For more descriptions about commands,
perlbrew help

Articles

Development

perlbrew has always been improving, it is a open source project for everyone to participate. There are currently over 60 contributors and growing. The code repository is located on github. Feel free to send a bug report, a pull request, or a beer. Everything helps.

from  http://perlbrew.pl/
https://github.com/gugod/www.perlbrew.pl