【问题标题】:openssl 1.1.1 Configure failureopenssl 1.1.1 配置失败
【发布时间】:2020-04-23 20:55:33
【问题描述】:

我有一个关于 OpenSSL 配置失败的大问题。 我安装了 ActiveState Perl (5.28) 和 NASM。然后我将 OpenSSL 存储库(分支 OpenSSL_1_1_1-stable)克隆到 C:/Respositories/openssl 目录中。 我尝试为 VC-WIN32A 目标平台配置 openssl 构建。在两台计算机(Win10 OS)上的测试给了我相同的结果:

C:\Repositories\openssl>perl Configure VC-WIN32
Configuring OpenSSL version 1.1.1h-dev (0x10101080L) for VC-WIN32
Using os-specific seed configuration
Can't locate Win32/Console.pm in @INC (you may need to install the Win32::Console module) (@INC contains: C:/Repositories/openssl/util/perl C:/Perl64/site/lib C:/Perl64/lib) at C:/Perl64/lib/ActivePerl/Config.pm line 400.
Compilation failed in require at C:/Perl64/site/lib/ExtUtils/MakeMaker.pm line 9.
BEGIN failed--compilation aborted at C:/Perl64/site/lib/ExtUtils/MakeMaker.pm line 9.
Compilation failed in require at C:/Perl64/site/lib/IPC/Cmd.pm line 235.

【问题讨论】:

  • 配置1.0.2u成功...

标签: openssl


【解决方案1】:

看起来这是 ActiveState Perl 软件中的一个错误 - 该模块在提供的 Config.pm 文件中被引用,但未在分发版中提供,并且似乎无法构建或检索它(免责声明 - 我没有任何 Perl 经验)。

我注释掉了相关条目,因为它们似乎只设置屏幕属性:

# Prevent calling Win32::Console::DESTROY on a STDOUT handle
my $console;
sub _warn {
    my($msg) = @_;
    unless (-t STDOUT) {
    print "\n$msg\n";
    return;
    }
#    require Win32::Console;
#    unless ($console) {
#   $console = Win32::Console->new(Win32::Console::STD_OUTPUT_HANDLE());
#    }
    my($col,undef) = 80; #$console->Size;
    print "\n";
#    my $attr = $console->Attr;
#    $console->Attr($Win32::Console::FG_RED | $Win32::Console::BG_WHITE);
    for (split(/\n/, "$msg")) {
    $_ .= " " while length() < $col-1;
    print "$_\n";
    }
#    $console->Attr($attr);
    print "\n";
}

...这使我进入了 Perl 说我的路径上没有 nmake 的阶段,但我有并且忽略了我继续并可以构建的警告。

【讨论】:

    猜你喜欢
    • 2020-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-28
    • 1970-01-01
    • 2013-02-24
    • 2019-03-14
    相关资源
    最近更新 更多