简体   繁体   English

Cygwin Perl 安装缺少 CPAN

[英]Cygwin Perl installation missing CPAN

I'm using the Buildroot makefiles on Cygwin to make some basic Linux systems, which requires several Perl modules.我在 Cygwin 上使用Buildroot makefile 来制作一些基本的 Linux 系统,这需要几个 Perl 模块。
CPAN does not seem to have installed with Perl, so I can't install any modules them without a lot of work (I know basically nothing about Perl) CPAN 似乎没有安装 Perl,所以我无法在没有大量工作的情况下安装任何模块(我基本上对 Perl 一无所知)
How can I get CPAN working?我怎样才能让 CPAN 工作? Thanks谢谢

Thought I'd return to this in case anyone comes back in the future: It seems to be unsupported and impossible to use Buildroot on Cygwin, so don't bother unless you really think you can make it work.我想如果将来有人回来的话我会回到这个:在 Cygwin 上使用 Buildroot 似乎不受支持并且不可能,所以不要打扰,除非你真的认为你可以让它工作。 If you do make it work please let me know :)如果你让它工作,请让我知道:)

输出

From the comments, we came to find:从评论中,我们发现:

$ cygcheck -c perl_base
Cygwin Package Information
Package              Version        Status
perl_base            5.30.1-1       OK

$ cygcheck -c perl
Cygwin Package Information
Package              Version        Status
perl                 5.26.3-2       OK

At some point, the perl_base package (the essential files) were updated.在某个时候, perl_base包(基本文件)被更新了。 perl_base doesn't depend on perl (the rest of core perl), so the perl package wasn't updated at that time. perl_base不依赖于perl (核心 perl 的其余部分),因此当时没有更新perl包。

Those two packages need to be upgraded in step.这两个包需要逐步升级。 The discrepancies in the versions is causing the problem.版本的差异导致了问题。 Upgrading the perl package to match fixed the problem.升级perl包以匹配修复了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM