Skip to content

Latest commit

 

History

History
195 lines (123 loc) · 4.75 KB

README.pod

File metadata and controls

195 lines (123 loc) · 4.75 KB

berrybrew

The perlbrew for Windows Strawberry Perl! berrybrew can download, install, remove and manage multiple concurrent versions of Strawberry Perl for Windows.

Synopsis

> berrybrew available

The following Strawberry Perls are available:

            5.20.2_64 [installed]*
            5.20.2_32 [installed]
            5.18.4_64
            5.18.4_32 [installed]
            5.16.3_64
            5.16.3_32 [installed]
            5.14.4_64
            5.14.4_32
            5.12.3_32
            5.10.1_32

* Currently using

> berrybrew install 5.10.1_32

Downloading http://strawberryperl.com/download/5.10.1.2/strawberry-perl-5.10.1.2-portable.zip to C:\Users\brewer\AppData\Local\Temp\s05wwfzt.nmv/strawberry-perl-5.10.1.2-portable.zip
Confirming checksum ...
Extracting C:\Users\brewer\AppData\Local\Temp\s05wwfzt.nmv/strawberry-perl-5.10.1.2-portable.zip

The following Strawberry Perls are available:

        5.20.1_64 [installed]*
        5.20.1_32 [installed]
        5.18.4_64
        5.18.4_32 [installed]
        5.16.3_64
        5.16.3_32 [installed]
        5.14.4_64
        5.14.4_32
        5.12.3_32
        5.10.1_32 [installed]

* Currently using

> berrybrew switch 5.10.1_32

Switched to 5.10.1_32, start a new terminal to use it.

Start a new cmd.exe ...

> perl -v
C:\Users\dfarrell>perl -v

This is perl, v5.10.1 (*) built for MSWin32-x86-multi-thread

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

> berrybrew remove 5.10.1_32

Successfully removed Strawberry Perl 5.10.1_32

> berrybrew config

This is berrybrew, version 0.05

Would you like to add berrybrew to your user PATH? y/n [n] y
berrybrew was successfully added to the user PATH, start a new terminal to use it.

> berrybrew exec prove -l

Perl-5.20.1_64
==============
t\DidYouMean.t .. ok
All tests successful.
Files=1, Tests=5,  0 wallclock secs ( 0.06 usr +  0.00 sys =  0.06 CPU)
Result: PASS


Perl-5.20.1_32
==============
t\DidYouMean.t .. ok
All tests successful.
Files=1, Tests=5,  0 wallclock secs ( 0.03 usr +  0.03 sys =  0.06 CPU)
Result: PASS


Perl-5.18.4_64
==============
t\DidYouMean.t ..
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/5 subtests

Test Summary Report
-------------------
t\DidYouMean.t (Wstat: 1280 Tests: 5 Failed: 5)
  Failed tests:  1-5
  Non-zero exit status: 5
Files=1, Tests=5,  0 wallclock secs ( 0.02 usr +  0.05 sys =  0.06 CPU)
Result: FAIL

Installation

Use the precompiled binary:

> git clone https://github.com/sillymoose/berrybrew
> cd berrybrew\bin
> berrybrew.exe config

Compile your own version with Mono:

> git clone https://github.com/sillymoose/berrybrew
> cd berrybrew
> mcs -lib:lib -r:ICSharpCode.SharpZipLib.dll -out:bin\berrybrew.exe -win32icon:berrybrew.ico src\berrybrew.cs
> cd bin
> berrybrew.exe config

Commands

berrybrew <command> [option]

license     Show berrybrew license

available   List available Strawberry Perl versions and which are installed
config      Add berrybrew to your PATH
install     Download, extract and install a Strawberry Perl
remove      Uninstall a Strawberry Perl
switch      Switch to use a different Strawberry Perl
exec        Run a command for every installed Strawberry Perl

Requirements

  • .Net Framework 2.0 or higher

  • Windows only!

  • Mono (only if compiling your own version)

Troubleshooting

If you run into trouble installing a Perl, try clearing the berrybrew cached downloads in C:/berrybrew/temp/.

Version

0.12

License

2 Clause FreeBSD - see LICENSE

Author

David Farrell http://perltricks.com

See Also