plenv - perl binary manager
plenv help # list available perl versions plenv available # install perl5 binary plenv install 5.16.2 -- -Dusethreads # execute command on current perl plenv exec ack # change global default perl to 5.16.2 plenv global 5.16.2 # change local perl to 5.14.0 plenv local 5.14.0 # run this command after install cpan module, contains executable script. plenv rehash # install cpanm to current perl plenv install-cpanm # migrate modules(install all installed modules for 5.8.9 to 5.16.2 environment.) plenv migrate-modules 5.8.9 5.16.2 # locate a program file in the plenv's path plenv which cpanm
Use plenv to pick a Perl version for your application and guarantee that your development environment matches production. Put plenv to work with [Carton](http://github.com/miyagawa/carton/) for painless Perl upgrades and bulletproof deployments.
plenv supports project local version determination.
i.e. .perl-version file support.
Install plenv with CPAN.
$ sudo -H cpan -i App::plenv
You can use homebrew to install plenv.
$ brew install plenv
1. Check out plenv into ~/.plenv/
$ git clone git://github.com/tokuhirom/plenv.git ~/.plenv
2. Add ~/.plenv/bin/ to your $PATH for access to the `plenv` command-line utility.
$ echo 'export PATH="$HOME/.plenv/bin:$PATH"' >> ~/.bash_profile **Ubuntu note**: Modify your `~/.profile` instead of `~/.bash_profile`. **Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`.
$ echo 'eval "$(plenv init -)"' >> ~/.bash_profile
Same as in previous step, use `~/.profile` on Ubuntu, `~/.zshrc` for Zsh.
You can now begin using plenv.
$ exec $SHELL -l
plenv detects current perl version with following order.
* Perl 5.8.1+ * wget or curl or fetch.
Try to use following command.
% plenv install-cpanm
This command install cpanm to current environment.
You can use migrate-modules subcommand.
migrate-modules
% plenv migrate-modules 5.8.2 5.16.2
It make a list of installed modules in 5.8.2, and install these modules to 5.16.2 environment.
Use following command.
% plenv install 5.16.2 -DDEBUGGING=-g
Plese use github issues: http://github.com/tokuhirom/plenv/.
Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
App::perlbrew provides same feature. But plenv provides project local file: .perl-version .
Most of part was inspired from rbenv.
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::plenv, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::plenv
CPAN shell
perl -MCPAN -e shell install App::plenv
For more information on module installation, please visit the detailed CPAN module installation guide.