在 Linux 上构建 Windows perl 模块
我有点陷入困境,我需要获得一些 Perl 模块,这些模块在 Activestate 可以访问的任何存储库上都可用。但该模块位于 CPAN 上,我获得了源代码,但当我尝试在 Windows 上编译它时,它失败了。如果我在 Ubuntu 虚拟机上运行它,我会运行 MAKE 并且工作正常。无论如何,有没有办法在Linux上为Windows编译MAKE,以便我可以获得这些模块?
有问题的模块是 Net::SSH::Perl 和 Net::SSH:W32Perl
任何帮助将不胜感激。
I am in a bit of a bind, I need to get my hands on some perl modules that are available on the any of the repos that Activestate can access. But the module is on CPAN and I got the source code but when I attempt to compile it on Windows it fails. If I run it on my Ubuntu virtual machine I run MAKE and works fine. Is there anyway to have MAKE on linux compile for Windows so I can get these modules?
The modules in question are Net::SSH::Perl and Net::SSH:W32Perl
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可以在此处找到 AS 存储库中不可用的一些模块。
http://theoryx5.uwinnipeg.ca/ppms/package.lst
Some of the modules not available in the AS repositories can be found here.
http://theoryx5.uwinnipeg.ca/ppms/package.lst
这是 ActiveState Perl 的一个问题:它并没有真正设置为构建模块,因为没有编译器。因此,您依赖某些第三方来为您构建和编译软件包。我喜欢 Active Perl,但这可能很痛苦。
下载 Strawberry Perl。 Strawberry Perl 是 Perl 的另一个 Windows 版本,但它也附带 MinGW 开发环境。这将允许您使用 CPAN 编译您需要的模块。您甚至可以在 ActiveState Perl 安装中安装这些模块。
你使用 Perl 5.12 吗?该版本的默认温尼伯大学软件包管理器仅安装了大约 1/2 打的软件包。当我添加版本 5.10 的 URL 时,我发现了更多可用的软件包。将 URL http://cpan.uwinnipeg.ca/PPMPackages/10xx/ 添加到PPM 程序并查看是否存在。
This is a problem with ActiveState Perl: It's not really setup to build modules because there's no compiler. Therefore, you depend upon some third party to build and compile the packages for you. I like Active Perl, but this can be a pain.
Download Strawberry Perl. Strawberry Perl is another Windows version of Perl, but it also comes with the MinGW development environment. This will allow you to use CPAN to compile the modules you need. You might even be able to install these modules in your ActiveState Perl installation.
Are you using Perl 5.12? The default University of Winnipeg package manager for that version only has about a 1/2 dozen packages installed on it. I've found more packages available when I added in the URL for version 5.10. Add in the URL http://cpan.uwinnipeg.ca/PPMPackages/10xx/ to the PPM program and see if its there.