in reply to Strawberryperl (Portable) impossible install module

You can try Sandboxie since you indicated that you are using Windows.

I use it to experiment with installing various modules from CPAN and testing them.

If the installs get messy, I just remove the Sandbox and can try again. My current Strawberry Perl install is not affected.

I am trying to get the courage to do this in a sandbox:

Remove my current version of Strawberry Perl using Add/Remove Programs.

(Running "control appwiz.cpl" from the Windows Run window is giving me problems, though.)

Build the latest version of Strawberry Perl in the sandbox.

If I am pleased with the the results of a batch of installs of modules from CPAN, then repeat the process in the live Windows environment.

UPDATE:

I have been experiencing problems with the sandbox. For example, create a sandbox and run:

perl -MCPAN -e shell test Test::Trap quit<<<<<<======That is how you exit the shell.

Those errors should not occur in your live Strawberry environment.

They seem to be associated with the use of temporary files.

Otherwise, the sandbox has been working well for me.

My advice: If you are a Windows user, try installing Sandboxie. It is easy to use and even if you don't have a use for it now, you will surely come up with one soon.

Replies are listed 'Best First'.
Re^2: Strawberryperl (Portable) impossible install module
by stevieb (Canon) on Jun 22, 2016 at 19:03 UTC

    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 ...

      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