App-perlbrew
view release on metacpan or search on metacpan
script/perlbrew view on Meta::CPAN
Usage:
perlbrew install [options] <perl-release>
perlbrew install [options] /path/to/perl-5.14.0.tar.gz
perlbrew install [options] /path/to/perl/git/checkout/dir
perlbrew install [options] https://example.com/mirror/perl-5.12.3.tar.gz
Build and install the wanted perl. The last argument can be a short string designating a specific version which can be known from the output of C<perlbrew available>, a path to a pre-downloaded tarball, a path to a git-checkout of perl5 repo, or a UR...
The format of <perl-release> looks like:
=over 4
=item perl-<version>
=item perl-stable
=item perl-blead
=item <version>
=item stable
=item blead
=back
Version numbers usually look like "5.x.xx", or "perl-5.xx.x-RCx" for
release candidates.
Version "stable" is a special token that means whatever the latest
stable version is at the moment.
Version "blead" is also a special token that means whatever the latest
version in the repository, which is downloaded from this specific URL
regardless of mirror settings:
https://github.com/Perl/perl5/archive/blead.tar.gz
The specified perl is downloaded from the official CPAN website or from the
mirror site configured before.
Version number alone without the "perl-" prefix means the official
release provided by perl5 porters.
Options for C<install> command:
-f --force Force installation
-j $n Parallel building and testing. ex. C<perlbrew install -j 5 perl-5.14.2>
-n --notest Skip testing
--switch Automatically switch to this Perl once successfully
installed, as if with `perlbrew switch <version>`
--as Install the given version of perl by a name.
ex. C<perlbrew install perl-5.6.2 --as legacy-perl>
--noman Skip installation of manpages
--thread Build perl with usethreads enabled
--multi Build perl with usemultiplicity enabled
--64int Build perl with use64bitint enabled
--64all Build perl with use64bitall enabled
--ld Build perl with uselongdouble enabled
--debug Build perl with DEBUGGING enabled
--clang Build perl using the clang compiler
--no-patchperl
Skip calling patchperl
-D,-U,-A Switches passed to perl Configure script.
ex. C<perlbrew install perl-5.10.1 -D usemymalloc -U versiononly>
--destdir $path
Install perl as per 'make install DESTDIR=$path'
--sitecustomize $filename
Specify a file to be installed as sitecustomize.pl
--mirror $URL
Specify a CPAN-mirror URL. The default value of this is "https://www.cpan.org"
By default, all installations are configured after their name like this:
sh Configure -de -Dprefix=$PERLBREW_ROOT/perls/<name>
=head1 COMMAND: INSTALL-MULTIPLE
Usage: perlbrew install-multiple [options] <perl-version-1> <perl-version-2> ...
Build and install the given versions of perl.
C<install-multiple> accepts the same set of options as the command
C<install> plus the following ones:
--both $flavor Where $flavor is one of C<thread>, C<multi>, C<ld>,
C<64int>, C<64all>, C<debug> and C<clang>.
For every given perl version, install two
flavors, one with the flag C<--$flavor> set
and the other with out. C<--both> can be
passed multiple times with different values
and in that case, all the possible
combinations are generated.
--common-variations equivalent to C<--both thread --both ld --both 64int>
--all-variations generates all the possible flavor combinations
--append $string Appends the given string to the generated names
For instance:
perlbrew install-multiple 5.18.0 blead --both thread --both debug
Installs the following perls:
perl-blead
perl-blead-debug
perl-blead-thread-multi
perl-blead-thread-multi-debug
perl-5.18.0
perl-5.18.0-debug
perl-5.18.0-thread-multi
perl-5.18.0-thread-multi-debug
(note that the C<multi> flavor is selected automatically because
C<thread> requires it)
Another example using custom compilation flags:
perlbrew install-multiple 5.18.0 --both thread -Doptimize='-O3' --append='-O3'
=head1 COMMAND: UNINSTALL
Usage:
perlbrew uninstall <name>
Alternatively:
perlbrew delete <name>
perlbrew rm <name>
Uninstalls the given perl installation. The name is the installation name as in
the output of `perlbrew list`. This effectively deletes the specified perl installation,
and all libs associated with it.
=head1 COMMAND: USE
Usage: perlbrew B<use> [perl-<version> | <version> | <name>]
Use the given version perl in current shell. This will not effect newly opened
shells.
Without a parameter, shows the version of perl currently in use.
=head1 COMMAND: SWITCH
Usage: perlbrew switch [ <name> ]
Switch to the given version, and makes it the default for this and all
future terminal sessions.
Without a parameter, shows the version of perl currently selected.
=head1 COMMAND: LIST
Usage: perlbrew list
List all perl installations inside perlbrew root specified by C<$PERLBREW_ROOT>
environment variable. By default, the value is C<~/perl5/perlbrew>.
If there are libs associated to some perl installations, they will be included
as part of the name. The output items in this list can be the argument in
various other commands.
=head1 COMMAND: AVAILABLE
Usage: perlbrew available [--all]
List the recently available versions of perl on CPAN.
By default, the latest sub-version of each stable versions are listed.
To get a list of all perls ever released, inculding development and RC versions, run the command with C<--all> option.
=head1 COMMAND: OFF
Usage: perlbrew off
( run in 1.773 second using v1.01-cache-2.11-cpan-39bf76dae61 )