为什么不鼓励在Windows上将PPM perl模块与Strawberry Perl一起使用? [英] Why is it discouraged to use PPM perl modules with Strawberry perl on Windows?

查看:148
本文介绍了为什么不鼓励在Windows上将PPM perl模块与Strawberry Perl一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以阐明为什么人们会发表此评论吗?我在stackoverflow上看到了几个线程(像这样的),其中人们这么说.在我看来,PPM只不过是预编译的模块版本,而这些预编译版本只是放在您的perl安装中.假设它们对系统DLL没有外部依赖关系,那么最大的风险是什么?

Can anyone shed light on why people would be making this comment? I've seen several threads on stackoverflow (like this one) where people say this. It seems to me that PPMs are nothing more than pre-compiled versions of modules that are just getting dropped into your perl installation. Assuming they have no external dependencies to a system DLL, what's the big risk?

据我所知,当您安装特定模块时,PPM会进行依赖性检查,并将安装它需要的任何其他模块.好像和在Linux发行版上使用.deb或.rpm文件一样.

As far as I can tell PPM does dependency checking when you install a particular module and will install any others that it requires. Seems like the same thing as using .deb or .rpm files on a Linux distro.

编辑#1:

我发现此页面关于模块Wx,他们在其中展示了如何使用PPM安装Wx for Strawberry Perl.我尝试了它们,它们似乎工作得很好.我还使用PPM和cpanminus混合了CPAN模块,一切似乎都很好.诸如以下模块:

I found this page regarding the module Wx where they're showing how to use PPM to install Wx for Strawberry Perl. I tried them and they seem to work just fine. I also mixed CPAN modules using PPM and cpanminus, and everything seems fine. Modules such as:

  • Wx
  • DateTime
  • DBI
  • Data :: Dumper
  • DBD :: AnyData

我的结论是,关于将PPM与草莓Perl混合使用的风险的评论应与一粒盐一起食用,因为这可能会导致您在这里或那里遇到问题,但总的来说,将PPM模块与Strawberry Perl一起使用是完全可以的.

I'm concluding that the comments regarding the risk of mixing PPM with Strawberry Perl as something that should be taken with a grain of salt, as something that may cause you an issue here or there, but in general its perfectly fine to use PPM modules with Strawberry Perl.

推荐答案

PPD实际上可以包括外部库(例如XML :: LibXML的软件包包括libxml2),因此它们安装起来更简单.

PPDs can actually include external libraries (e.g. XML::LibXML's package includes libxml2), so they can be simpler to install.

PPD已被编译,因此可以更快地安装.

PPDs are already compiled, so they can be faster to install.

PPD给您的控制较少,因为它们是由其他人准备的.您只能使用可用的模块(谢天谢地,这是可用的大量功能)和可用的版本.

PPDs give you less control since they are prepared by someone else. You are limited to the modules available (which is thankfully a huge swath of what's available) and to the versions available.

我通常会犹豫是否要混合两个系统,但是我从来没有遇到过在同一版本中同时使用ppmcpan的任何问题.

I normally hesitate to mix two systems, but I have never encountered a single issue from using both ppm and cpan on the same build.

只需使用对您方便的一种.

Just use the one that's convenient for you.

这篇关于为什么不鼓励在Windows上将PPM perl模块与Strawberry Perl一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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