gpt4 book ai didi

windows - 我怎样才能让 ActivePerl 与 cygwin 的屏幕很好地配合?

转载 作者:可可西里 更新时间:2023-11-01 13:26:58 30 4
gpt4 key购买 nike

我想使用 cygwin 工具(屏幕)进行开发,从 cygwin 环境调用 ActiveState Perl 调试器会引发以下错误。

bash-3.2$ perl -d test.pl
The system cannot find the path specified.
Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work. The COLUMNS and LINES environment variables didn't work. The resiz
e program didn't work. at F:/Perl/lib/Term/ReadKey.pm line 362.
Compilation failed in require at F:/Perl/lib/Term/ReadLine/Perl.pm line 64.
at F:/Perl/lib/Term/ReadLine/Perl.pm line 64
Term::ReadLine::Perl::new('Term::ReadLine', 'perldb', 'GLOB(0x18e2e0c)', 'GLOB(0x1883e14)') called at F:/Perl/lib/perl5db.pl line 6073
DB::setterm called at F:/Perl/lib/perl5db.pl line 2237
DB::DB called at testReliance1.pl line 2
Attempt to reload Term/ReadLine/readline.pm aborted.
Compilation failed in require at F:/Perl/lib/Term/ReadLine/Perl.pm line 64.
END failed--call queue aborted at testReliance1.pl line 64.
at testReliance1.pl line 64
bash-3.2$

我找不到任何解决方法。
尝试使用 cygwin perl distribution,但在 cpan 下编译 perl 模块对我来说是噩梦,因为它们中的大多数不会编译并且没有深入的知识来修复编译器错误。

为调试器提供一个伪造的终端可能会奏效,但不知道可行性和如何进行。
请建议是否有任何解决方法。

最佳答案

来自"Environment" section of the Term::ReadLine documentation :

The environment variable PERL_RL governs which ReadLine clone is loaded. If the value is false, a dummy interface is used.

作为解决不兼容问题的解决方法,您可以禁用 Term::ReadLine

bash$ PERL_RL=0 perl -d test.pl

关于windows - 我怎样才能让 ActivePerl 与 cygwin 的屏幕很好地配合?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2120553/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com