【问题标题】:Error while instaling Padre 1.0 on Windows, Strawberry Perl v5.20, how find root cause?在 Windows 上安装 Padre 1.0 时出错,Strawberry Perl v5.20,如何找到根本原因?
【发布时间】:2015-10-22 09:07:51
【问题描述】:

我正在尝试为 Windows perl v5.20 创建 DWIM 所以我为 Padre 1.0 安装了所有依赖项 Padre-ide github repo, dwimperl-windows

我在 dmake 测试中有错误

padre_log_2.txt

你有什么修复方法的想法吗?

所有错误都让我感到困惑, 我无法想象如何开始调试 padre 以找到错误的核心(根本原因)

即使是第一个错误

t/02_new.t ................. 1/62 # Looks like you planned 62 tests but ran 1.
# Looks like your test exited with 255 just after 1.

或第二个

t/05_project.t ............. 1/16 Invalid version format (non-numeric data) at C
:\Users\TOSH\Documents\GitHub\padre-mi\blib\lib/Padre/Wx/Menu/Debug.pm line 5.
BEGIN failed--compilation aborted at C:\Users\TOSH\Documents\GitHub\padre-mi\blib\lib/Padre/Wx/Menu/Debug.pm line 5.
Compilation failed in require at C:\Users\TOSH\Documents\GitHub\padre-mi\blib\lib/Padre/Wx/Menubar.pm line 72.
# Looks like you planned 16 tests but ran 2.

好吧,我尝试使用 Padre 0.94 做同样的事情 这里build.log

错误更有趣 Possible precedence issue with control flow operator at

01_dmake_test.log

我一步一步开始调试

perl -Ilib -MCarp::Always -e "use Test::More;use_ok('Padre::Config');done_testing()" > error.log 2>&1

我得到了

Error:  Failed to find share dir for dist 'Padre' at C:/Users/TOSH/Documents/GitHub/dwimperl-windows/strawberry-perl-5.20.0.1-32bit-portable/perl/vendor/lib/File/ShareDir.pm line 173.

error.log 01_padre_debug.pl

【问题讨论】:

标签: windows perl testing padre dmake


【解决方案1】:

我会重新安装 DWIM,如下所述:

  1. here下载DWIM

  2. 将 DWIM 安装到 C:\DWIMPerl_5.14.2 并测试安装。然后启动Padre

  1. Padre 启动并运行

这已在 Windows 7 Professional 上成功完成。

【讨论】:

  • 好交易。您不妨联系 DWIM Perl 的维护者 Gabor Szabo 寻求帮助。
  • 我还尝试了 Strawberry Perl 5.20.x 32 位和 64 位,但遇到了 Alien::wxWidgets 等依赖模块无法编译的问题。我认为当涉及到 Perl、Padre 等时,DWIM 发行版通常落后于一个或更多版本是司空见惯的。
  • 见这里讨论 PerlMonks (perlmonks.org/?node_id=1106777)
  • 在不同的文件夹中安装最新版本的 Perl,并将该版本的 Perl 用作您的默认 Perl。请务必更改 %PATH% 以首先查看最新的 Perl。
  • 在新文件夹中安装 Perl 5.20.x 后,在同一个 Perl 环境中安装或构建 Padre。
猜你喜欢
  • 2021-01-15
  • 1970-01-01
  • 2016-01-17
  • 1970-01-01
  • 2012-07-18
  • 2014-11-09
  • 2012-07-12
  • 2017-10-14
  • 2020-02-21
相关资源
最近更新 更多