Openssl upgrade in Strawberry Perl

2019-09-05 17:19发布

问题:

I want to ask that how can I upgrade the Openssl version from 0.9 to 1.0.* in Strawberry Perl version 5.10.*?

PS: I do not want to upgrade the strawberry perl version as well as I am using windows environment. Thanks!

回答1:

Note, also asked, answered on Perlmonks.

As far as I know, you can't simply upgrade OpenSSL within a Strawberry installation. Also, Perl 5.10 was released way back in 2007, so it's probably best you upgrade the whole shebang anyways.

berrybrew for Windows offers you a way to both upgrade your Perl (and OpenSSL), while providing you the ability to switch between Perl versions, and even move them around from system to system, copy instances, create template instances that you can restore to at any time, and even revert back to your original Strawberry Perl installation if you need to.

First, take inventory of the Perl modules you have installed:

perl -MCPAN -e 'autobundle;'

...after that runs, you'll end up with a file name as output. Eg: .../Bundle/Snapshot_2016_10_15_00.pm. Copy that file to say your desktop.

Download the berrybrew zip file, and extract it in a directory on your system (but NOT c:\berrybrew, as this is the default location where we store our Perl instances). Then, open a cmd.exe window, and:

cd berrybrew
bin\berrybrew.exe config

# close the current cmd.exe window, and open a new one

berrybrew install 5.24.0_64
berrybrew switch 5.24.0_64

# close cmd.exe, open a new one

Now, you've got the most recent version of Perl usable system-wide, and you've left your Strawberry install in place in case you need it. If you do, just run berrybrew off, and open a new cmd window. The closing/reopening of new cmd windows is required thanks to how Windows handles its environment variables.

Now, reinstall all of your modules into the new version of Perl:

cpan -i file://Desktop/Snapshot_2016_10_15_00.pm

Make a backup of this freshly set up instance of Perl:

berrybrew clone 5.24.0_64 5.24_template

Now you're up-to-date with everything, ready to go.

By the way, berrybrew uses Strawberry Perl portable edition for all of its instances.