Strawberry Perl中的Openssl升级 [英] Openssl upgrade in Strawberry Perl

查看:130
本文介绍了Strawberry Perl中的Openssl升级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问的是,如何在Strawberry Perl版本5.10.*中将Openssl版本从0.9升级到1.0.*?

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:我不想升级草莓perl版本,也不想使用Windows环境.谢谢!

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

推荐答案

请注意,也请在 Perlmonks .

据我所知,您不能简单地在Strawberry安装中升级OpenSSL.另外,Perl 5.10于2007年发布,因此最好还是升级整个Shebang.

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.

berrybr 为您提供了一种同时升级Perl(和OpenSSL)的方法可以在Perl版本之间进行切换,甚至可以在系统之间移动它们,复制实例,创建可以随时还原到的模板实例,甚至在需要时还可以恢复到原始的草莓Perl安装. p>

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.

首先,清点已安装的Perl模块:

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

perl -MCPAN -e 'autobundle;'

...在运行之后,您将最终得到一个文件名作为输出.例如:.../Bundle/Snapshot_2016_10_15_00.pm.复制该文件以说出您的桌面.

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

下载 berrybrzip文件,并将其解压缩到系统上的目录(但不是c:\berrybrew,因为这是我们存储Perl实例的默认位置).然后,打开cmd.exe窗口,然后:

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

现在,您已经获得了Perl在系统范围内可用的最新版本,并且您将Strawberry安装保留在适当的位置,以备不时之需.如果这样做,只需运行berrybrew off,然后打开一个新的cmd窗口.由于Windows如何处理其环境变量,因此需要关闭/重新打开新的cmd窗口.

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.

现在,将所有模块重新安装到新版本的Perl中:

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

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

对此Perl的新设置实例进行备份:

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.

顺便说一句,berrybrew对其所有实例均使用Strawberry Perl便携式版本.

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

这篇关于Strawberry Perl中的Openssl升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆