【问题标题】:Unable to build Perl module Net::MAC::Vendor无法构建 Perl 模块 Net::MAC::Vendor
【发布时间】:2020-08-04 07:57:25
【问题描述】:

我无法在带有 High Sierra 的 Mac 上构建 Net::MAC::Vendor。我对 Perl 比较陌生,但过去构建过模块。错误似乎是:

Failed fetching [https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-L&format=html&text=14-10-9F] HTTP status []
message [IO::Socket::SSL 2.009+ required for TLS support] at t/fetch_oui_from_custom.t line 21.
Could not fetch data from the IEEE! at t/fetch_oui_from_custom.t line 21.

    #   Failed test ''Got back array reference' isa 'ARRAY''
    #   at t/fetch_oui_from_custom.t line 23.
    #     'Got back array reference' isn't defined

    #   Failed test 'Fetched Apple's OUI entry'
    #   at t/fetch_oui_from_custom.t line 25.
    #                   ''
    #     doesn't match '(?^:Apple, Inc\.)'
    # Looks like you failed 2 tests of 2.
t/fetch_oui_from_custom.t .. 2/? 
#   Failed test 'fetch'
#   at t/fetch_oui_from_custom.t line 27.
Use of uninitialized value in concatenation (.) or string at /Users/johnprokopek/.cpan/build/Net-MAC-Vendor-1.265-13/blib/lib/Net/MAC/Vendor.pm line 320.
Failed fetching [http://standards.ieee.org/cgi-bin/ouisearch?14-10-9F] HTTP status []

谁能帮忙,谢谢

【问题讨论】:

  • "IO::Socket::SSL 2.009+ 需要 TLS 支持":我尝试在 macOS Catalina 上安装它,perl 版本 5.28.2。即使我首先对cpanm IO::Socket::SSL 进行一次测试Net::MAC::Vendor 仍然失败。稍后我必须对此进行更多研究

标签: perl cpan


【解决方案1】:

我还在 High Sierra (10.13.6) 上,在 2010 年中期使用一台古老但仍在运行的 Mac Mini。使用内置的/usr/bin/perl (v5.18.2),在 CPAN shell 中运行install Net::MAC::Vendor 给了我同样的错误。运行 force install Net::MAC::Vendor 有效,因为模块已安装。

一个简单的perl -MNet::MAC::Vendor -e "print 'hi'" 有效,所以看起来 Perl 至少可以加载该库,但不确定如何测试它是否真正有效。但是,至少这会让你安装并尝试一下。

【讨论】:

    猜你喜欢
    • 2018-11-06
    • 1970-01-01
    • 2019-03-14
    • 1970-01-01
    • 1970-01-01
    • 2020-04-02
    • 2012-07-04
    • 2013-12-08
    相关资源
    最近更新 更多