in reply to Re: Strawberryperl (Portable) impossible install module
in thread Strawberryperl (Portable) impossible install module

You can do this with berrybrew:

Say your system Strawberry Perl is v5.22.1 64-bit:

> berrybrew install 5.22.1_64 > berrybrew switch 5.22.1_64 ... open new cmd window... > cpanm Module::One Module::Two Module::Ten

Did it fail?

> berrybrew remove 5.22.1_64 > berrybrew install 5.22.1_64 > berrybrew switch 5.22.1_64 ... open new cmd

...or did it work?

> berrybrew off ... new cmd window will now use system perl again > cpanm ...

Replies are listed 'Best First'.
Re^3: Strawberryperl (Portable) impossible install module
by Cow1337killr (Monk) on Jun 22, 2016 at 19:46 UTC

    Oh. So when a fellow Perl monk says they are experiencing a particular problem and they are running a particular version of Strawberry, then one can attempt to duplicate the problem on one's own computer system on possibly the other side of the world.

    Impressive.

      Well, it's exactly like Perlbrew, but for Windows. It allows you to have any number of Perl installations installed, without touching the system perl.

      ...and do things like:

      berrybrew exec cpanm Module::One

      ...which will install the module on ALL installed versions. Or:

      berrybrew exec --with 5.22.1_64,5.24.0 cpanm Module::One

      to install on only select vers.

      For example, say you need a module but want to check which version of Perl it'll run under, before deciding on a version to install system-wide to a number of Windows machines:

      >berrybrew exec cpanm Log::Simple Perl-5.24.0_64 ============== --> Working on Log::Simple Fetching http://www.cpan.org/authors/id/M/MO/MOUNS/Log-Simple-1.8.tar. +gz ... OK Configuring Log-Simple-1.8 ... OK Building and testing Log-Simple-1.8 ... OK Successfully installed Log-Simple-1.8 1 distribution installed Perl-5.22.1_64 ============== Log::Simple is up to date. (1.8) Perl-5.22.1_32 ============== --> Working on Log::Simple Fetching http://www.cpan.org/authors/id/M/MO/MOUNS/Log-Simple-1.8.tar. +gz ... OK Configuring Log-Simple-1.8 ... OK Building and testing Log-Simple-1.8 ... OK Successfully installed Log-Simple-1.8 1 distribution installed Perl-5.18.4_32 ============== --> Working on Log::Simple Fetching http://www.cpan.org/authors/id/M/MO/MOUNS/Log-Simple-1.8.tar. +gz ... OK Configuring Log-Simple-1.8 ... OK Building and testing Log-Simple-1.8 ... OK Successfully installed Log-Simple-1.8 1 distribution installed Perl-5.14.4_64 ============== --> Working on Log::Simple Fetching http://www.cpan.org/authors/id/M/MO/MOUNS/Log-Simple-1.8.tar. +gz ... OK Configuring Log-Simple-1.8 ... OK Building and testing Log-Simple-1.8 ... OK Successfully installed Log-Simple-1.8 1 distribution installed Perl-5.14.4_32 ============== --> Working on Log::Simple Fetching http://www.cpan.org/authors/id/M/MO/MOUNS/Log-Simple-1.8.tar. +gz ... OK Configuring Log-Simple-1.8 ... OK Building and testing Log-Simple-1.8 ... OK Successfully installed Log-Simple-1.8 1 distribution installed

        That is a good and well-explained example of a real world problem and the real world solution using berrybrew.