Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: berrybrew installation

by stevieb (Canon)
on Feb 12, 2017 at 02:56 UTC ( #1181775=note: print w/replies, xml ) Need Help??


in reply to berrybrew installation

Hi Cow1337killr,

Disclaimer: Current berrybrew maintainer here.

"Where do I go on the Internet to download the berrybrew.zip file?"

Per the Installation portion of the documentation, you get it from here (this is the master cut... it'll always be up-to-date). You then want to compare that fetch against the SHA-1 sum that is posted next to the download link in the Installation section I mentioned above.

When you download the archive (zip) file, you want to extract it to anywhere on your system, except for C:\berrybrew. We hijack that directory for internal purposes (in the future, this won't be forced. In fact, it can be changed... see here). After you've extracted the file, change into that directory, and then initialize berrybrew:

cd berrybrew bin\berrybrew.exe config

You need to close your cmd window here, as Windows doesn't update its environment variables live-time in the way it is needed here. Then, open a new one.

Then:

berrybrew install 5.24.1_64 berrybrew switch 5.24.1_64

Kill current cmd window, open a new one, and:

perl -v

Now you can confirm you're operating on the proper version you selected, and you can go ahead and create stuff, and when executed, it'll run on the proper Perl installation.

Replies are listed 'Best First'.
Re^2: berrybrew installation
by Cow1337killr (Monk) on Feb 12, 2017 at 03:26 UTC
    O.K. Thank you. I am going to try it now.

    Strawberry Perl 5.24.1.1 (32bit) (i.e., 5.24.1_32) is not in the list of available Strawberry Perl versions.

      Could you kindly provide the command you specified that generated that error message?

        Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. (I moved berrybrew.zip to C:\berrybrew-programs and extracted it using + 7-Zip. ) (I had to create the berrybrew directory myself.) C:\Documents and Settings\User1\My Documents>cd C:\berrybrew\ C:\berrybrew>C:\berrybrew-programs\berrybrew\bin\berrybrew.exe config This is berrybrew, version 1.09 Would you like to add berrybrew to PATH? y/n [n] C:\berrybrew> =================================== New cmd window =================== +================= Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\User1\My Documents>cd "C:\berrybrew-programs +\berrybrew\bin\" C:\berrybrew-programs\berrybrew\bin>berrybrew available The following Strawberry Perls are available: 5.24.0_64 5.24.0_64_PDL 5.24.0_32 5.22.2_64 5.22.2_64_PDL 5.22.2_32 5.22.1_64 5.22.1_32 5.20.3_64 5.20.3_64_PDL 5.20.3_32 5.20.3_32_PDL 5.18.4_64 5.18.4_32 5.16.3_64 5.16.3_32 5.14.4_64 5.14.4_32 5.12.3_32 5.10.1_32 * Currently using C:\berrybrew-programs\berrybrew\bin>berrybrew install 5.24.1_32 Unknown version of Perl Use the available command to see what versions of Strawberry Perl are +available C:\berrybrew-programs\berrybrew\bin>berrybrew install 5.24.0_32 Downloading http://strawberryperl.com/download/5.24.0.1/strawberry-per +l-5.24.0.1-32bit-portable.zip to C:\berrybrew\temp\str awberry-perl-5.24.0.1-32bit-portable.zip Confirming checksum ... Extracting C:\berrybrew\temp\strawberry-perl-5.24.0.1-32bit-portable.z +ip The following Strawberry Perls are available: 5.24.0_64 5.24.0_64_PDL 5.24.0_32 [installed] 5.22.2_64 5.22.2_64_PDL 5.22.2_32 5.22.1_64 5.22.1_32 5.20.3_64 5.20.3_64_PDL 5.20.3_32 5.20.3_32_PDL 5.18.4_64 5.18.4_32 5.16.3_64 5.16.3_32 5.14.4_64 5.14.4_32 5.12.3_32 5.10.1_32 * Currently using C:\berrybrew-programs\berrybrew\bin>berrybrew switch 5.24.0_32 Switched to 5.24.0_32, start a new terminal to use it. C:\berrybrew-programs\berrybrew\bin>
Re^2: berrybrew installation
by Anonymous Monk on Aug 01, 2017 at 17:29 UTC

    Hi stevieb,

    if I already have a portable Strawberry Perl und install berrybrew - can I just move portable Perl to C:\berrybrew or I have to install this version again under berrybrew?

    Thank you!

      If you have version 1.13+, you can copy it in, and use berrybrew register to register it. If you don't have that version, copy the directory, then edit the data/perls_custom.json file in the berrybrew installation directory, and make it look something like (where ver: is the actual version number as downloaded):

      [ { "name": "whatever_you_want", "url": "", "file": "", "csum": "", "ver": "5.22.3" } ]

      If you have existing custom perls, then that needs to be appended to the others. This new version will then be considered a legit "custom" version.

        Thank you very much! Do not have berrybrew yet, so will surely have a newest version of it :-) so register should work. Have a lot of CPAN modules installed in my working version (just Strawberry Perl, no hacks - this is what you mean by custom perl, right?), do not want to repeat the installation if it can be avoided.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1181775]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2022-05-25 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?