加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows – 如何让ActivePerl与cygwin的屏幕很好地配合?

发布时间:2020-12-14 02:25:48 所属栏目:Windows 来源:网络整理
导读:我想使用cygwin工具(屏幕)进行开发,并从cygwin环境调用ActiveState Perl调试器会引发以下错误. bash-3.2$perl -d test.plThe system cannot find the path specified.Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work.
我想使用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 distrubution,但在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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读