06 Dec 2010 04:08:17 UTC
- Distribution: App-perlbrew
- Module version: 0.15
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (99)
- Testers (259 / 1 / 1)
- KwaliteeBus factor: 1
- License: mit
- Perl: v5.8.0
- Activity24 month
- Download (37.51KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- PROJECT DEVELOPMENT
- DISCLAIMER OF WARRANTY
App::perlbrew - Manage perl installations in your $HOME
# Initialize perlbrew init # Pick a preferred CPAN mirror perlbrew mirror # Install some Perls perlbrew install perl-5.12.2 perlbrew install perl-5.8.1 perlbrew install perl-5.13.6 # See what were installed perlbrew list # Switch perl in the $PATH perlbrew switch perl-5.12.2 perl -v # Switch to another version perlbrew switch perl-5.8.1 perl -v # Switch to a certain perl executable not managed by perlbrew. perlbrew switch /usr/bin/perl # Or turn it off completely. Useful when you messed up too deep. perlbrew off # Use 'switch' command to turn it back on. perlbrew switch perl-5.12.2
perlbrew is a program to automate the building and installation of perl in the users HOME. At the moment, it installs everything to
~/perl5/perlbrew, and requires you to tweak your PATH by including a bashrc/cshrc file it provides. You then can benefit from not having to run 'sudo' commands to install cpan modules because those are installed inside your HOME too. It's a completely separate perl environment.
perlbrew, it is required to install
perlbrewdepends on one of this two external commmands to be there in order to fetch files from the internet.
The recommended way to install perlbrew is to run these statements in your shell:
curl -LO http://xrl.us/perlbrew chmod +x perlbrew ./perlbrew install
or more simply:
curl -L http://xrl.us/perlbrewinstall | bash
perlbrewinstalls itself to
~/perl5/perlbrew/bin, and you should follow the instruction on screen to setup your
.cshrcto put it in your PATH.
~/perl5/perlbrewwill contain all install perl executables, libraries, documentations, lib, site_libs. If you need to install
perlbrew, and the perls it brews, into somewhere else because, say, your HOME has limited quota, you can do that by setting a
PERLBREW_ROOTenvironment variable before you run
export PERLBREW_ROOT=/mnt/perlbrew ./perlbrew install
The downloaded perlbrew is a self-contained standalone program that embeds all non-core modules it uses. It should be runnable with perl 5.8 or later versions of perl.
You may also install perlbrew from CPAN with cpan / cpanp / cpanm:
This installs 'perlbrew' into your current PATH and it is always executed with your current perl.
NOTICE. When you install or upgrade perlbrew with cpan / cpanp / cpanm, make sure you are not using one of the perls brewed with perlbrew. If so, the `perlbrew` executable you just installed will not be available after you switch to other perls. You might not be able to invoke further
perlbrewcommands after so because the executable
perlbrewis not in your
PATHanymore. Installing it again with cpan can temporarily solve this problem. To ensure you are not using a perlbrewed perl, run
perlbrew offbefore upgrading.
It should be relatively safe to install
App::perlbrewwith system cpan (like
/usr/bin/cpan) because then it will be installed under a system PATH like
/usr/bin, which is not affected by
Again, it is recommended to let
perlbrewinstall itself. It's easier, and it works better.
Please read the program usage by running
(No arguments.) To read a more detailed one:
perlbrew project uses PivotalTracker for task tracking: http://www.pivotaltracker.com/projects/129997. You may also report bugs to github http://github.com/gugod/App-perlbrew/issues or RT <https://rt.cpan.org/Dist/Display.html?Queue=App-perlbrew>. They will be definitely reviewed and handled.
Copyright (c) 2010, Kang-min Liu
The MIT License
Patches and code improvements have been contributed by:
Tatsuhiko Miyagawa, Chris Prather, Yanick Champoux, aero, Jason May, Jesse Leuhrs, Andrew Rodland, Justin Davis, Masayoshi Sekimura, castaway, jrockway, chromatic, Goro Fuji, Sawyer X, Danijel Tasov, polettix, and tokuhirom.
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Module Install Instructions
To install App::perlbrew, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install App::perlbrew
For more information on module installation, please visit the detailed CPAN module installation guide.