我应该为Windows选择ActivePerl还是Strawberry Perl? [英] Should I choose ActivePerl or Strawberry Perl for Windows?

查看:132
本文介绍了我应该为Windows选择ActivePerl还是Strawberry Perl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Perl完全陌生,但是我想尝试一下。我了解了两个可用于Windows平台的竞争对手发行版(我猜在其他操作系统上还有 just Perl:)。

I'm totally new to Perl, but I'd like to try it out. I read about two rival distributions available for Windows platform (I guess there's just Perl on other OSes :).

维基百科草莓Perl 随附了其他开发工具,必要时可以编译CPAN模块。

Wikipedia says that Strawberry Perl comes with additional development tools to compile CPAN modules if necessary. It sounds pretty good to me.

它还说 ActivePerl 具有许多预打包的模块,这些模块更易于通过PPM安装。听起来也很棒!

It also says that ActivePerl has a lot of prepackaged modules which are easier to install with PPM. It sounds great too!

这两个之间有明显的取舍。我想知道:我应该选择什么入门?如果我选择其中一个有多困难,是否可以迁移到另一个?

There's a clear trade-off between those two. And I wonder: What should I pick to get started? If I pick one how hard, is it to migrate to the other?

我对两个发行版都进行了一次几个星期。我真的很喜欢两者,这是一件好事! 这两个都不能出错。我之所以选择ActivePerl仅仅是因为它附带了脱机文档(HTML)-对于那些人来说,这是一个很棒的救星谁在旅途中或只是不总是保持联系。在我不总是在线的时候,我在放假时开始使用Perl语言就非常容易。

I gave both distributions a run for a couple of weeks. I actually liked both which is a good thing! One can't go wrong with either of these. I ended up going with ActivePerl simply because it comes with offline documentation(in HTML) - a great life-savior for those who are on the road or just not always connected. It was super-easy for me to get started with Perl language while I was on vacation when I wasn't always online.

Strawberry Perl至少非常出色更大。所以我也完全可以推荐它。我不得不说,应该只学习Perl-这是一门非常漂亮的语言。尝试一下!

Strawberry Perl is at least as great if not greater. So I can totally recommend it, too. And I have to say one should just learn Perl - it's a very beautiful language. Give it a try!

推荐答案

在都使用了两年之后,我想至少对我来说,ActivePerl是一个更方便的选择。 ActivePerl中包含的 PPM安装程序允许您添加备用PPM存储库,这将使您能够访问几乎所有有用的信息CPAN上可用的Perl模块-但已为Windows准备并经过测试。从长远来看,这对我来说是一个更好(也更可靠)的选择。即使对于Windows版本的Apache HTTP服务器,也可以使用预编译的mod_perl(2.0.4)ppm,它将(对我来说)与ActivePerl 5兼容。 12 .1和 Apache 2.2.15

After having used both for years, I'd say, for me at least, ActivePerl is a much more convenient choice. The PPM installer included in ActivePerl allows you to add alternative PPM repositories which will give you access to almost all useful Perl modules available on CPAN - but prepared and tested for Windows. This was for me, in the long run, a much better (and more robust) choice. Even for the Windows version of the Apache HTTP server, there is a precompiled mod_perl (2.0.4) ppm available which will (did for me) work out of the box with ActivePerl 5.12.1 and Apache 2.2.15.

我认为我尝试在Windows 7上安装DBI + DBD :: mysql之后就掉了Strawberry Perl(这对ActivePerl来说是没有道理的;只需单击ppm并选择安装)。

I think I dropped Strawberry Perl after trying to install DBI + DBD::mysql on Windows 7 (which is a no brainer in ActivePerl; just click on the ppms and choose install).

但是也许现在已经解决了。也许人们可以选择Strawberry Perl的安装目录(我无法安装)。

But maybe that's solved by now. And maybe one can choose the directory where Strawberry Perl gets installed (I couldn't).

BTW:要编译自己的Inline或XS内容,只需通过ppm安装MinGW编译器(我没有这样做,但是看起来很有趣)。

BTW: for compiling your own Inline or XS stuff, just install the MinGW compiler by ppm (I didn't do that, but it looks interesting).

附录:在阅读下面的评论后,我再次检查了Strawberry Perl,现在可以更改安装目录了,这是一个表示5.12.0版本的功能(实际版本)。这将解决Strawberry Perl(与ActivePerl相比)的一个重要(IMHO)缺点。

Addendum: after reading the comment below, I checked Strawberry Perl again and it's now possible to change the installation directory, which is a denoted feature of the 5.12.0 release (which is the actual version). This would solve one important (IMHO) disadvantage of Strawberry Perl (compared to ActivePerl).

这篇关于我应该为Windows选择ActivePerl还是Strawberry Perl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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