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

如何安装ZeroMQ及其cpan perl模块ine windows(activeperl)

发布时间:2020-12-15 23:32:37 所属栏目:大数据 来源:网络整理
导读:我想通过我的perl脚本安装和使用ZeroMQ.我试图从CPAN安装ZeroMQ,但安装在最后一步失败了: ZeroMQ-0.21/eg/threaded_server.pl---- Unsatisfied dependencies detected during -------- DMAKI/ZeroMQ-0.21.tar.gz ---- Devel::CheckLib [build_requires] Ext
我想通过我的perl脚本安装和使用ZeroMQ.我试图从CPAN安装ZeroMQ,但安装在最后一步失败了:

ZeroMQ-0.21/eg/threaded_server.pl
---- Unsatisfied dependencies detected during ----
----         DMAKI/ZeroMQ-0.21.tar.gz         ----
    Devel::CheckLib [build_requires]
    ExtUtils::MakeMaker [build_requires]
Running make test
  Make had some problems,won't test
  Delayed until after prerequisites
Running make install
  Make had some problems,won't install
  Delayed until after prerequisites
..........
.............

blibscriptuse-devel-checklib
        pl2bat.bat blibscriptuse-devel-checklib
  MATTN/Devel-CheckLib-0.98.tar.gz
  C:PROGRA~2MICROS~1.0VCbinnmake.exe -- OK
Running make test

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        C:Perl5.14binperl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,'bliblib','blibarch')" t/*.t
t/00-load.t ................... ok
t/bad-single-word-compiler.t .. ok
t/cmdline-LIBS-INC.t .......... skipped: Couldn't build a library to test against
t/custom-function.t ........... skipped: Couldn't build a library to test against
t/dash-l-libs.t ............... skipped: Couldn't build a library to test against
t/exit_with_message.t ......... ok
t/found.t .....................
t/found.t ..................... 1/6 #   Failed test 'lib => 'msvcrt''
   at t/found.t line 53.
          got: 'Can't link/include C library 'msvcrt',aborting.
 '
     expected: ''
       STDOUT:
       STDERR:

   Failed test '... and check_lib is true'
   at t/found.t line 54.

   Failed test 'lib => 'kernel32''
   at t/found.t line 53.
          got: 'Can't link/include C library 'kernel32',aborting.
 '
     expected: ''
       STDOUT:
       STDERR:

   Failed test '... and check_lib is true'
   at t/found.t line 54.

   Failed test 'lib => ['msvcrt','kernel32']'
   at t/found.t line 53.
          got: 'Can't link/include C library 'msvcrt','kernel32',aborting.
 '
     expected: ''
       STDOUT:
       STDERR:

   Failed test '... and check_lib is true'
   at t/found.t line 54.
 Looks like you failed 6 tests of 6.
t/found.t ..................... Dubious,test returned 6 (wstat 1536,0x600)
Failed 6/6 subtests
t/headers.t ................... 1/5
   Failed test 'incpath => '.',header => 't/inc/headerfile.h''
t/headers.t ................... 3/5 #   at t/headers.t line 47.
          got: 'Can't link/include C library 't/inc/headerfile.h',aborting.
 '
     expected: ''
       STDOUT:
       STDERR:

   Failed test 'incpath => [qw(t/inc)],header => 'headerfile.h''
   at t/headers.t line 47.
          got: 'Can't link/include C library 'headerfile.h',aborting.
 '
     expected: ''
       STDOUT:
       STDERR:

   Failed test 'INC => '-I. -It/inc',aborting.
 '
     expected: ''
       STDOUT:
       STDERR:
 Looks like you failed 3 tests of 5.
t/headers.t ................... Dubious,test returned 3 (wstat 768,0x300)
Failed 3/5 subtests
t/multi-word-compiler.t ....... ok
t/not_found.t ................. 3/12
   Failed test 'missing 'foo' detected'
   at t/not_found.t line 39.
                   'Can't link/include C library 'msvcrt','foo',aborting.
 '
     doesn't match '/^Can't link/include C library 'foo'/ms'
 Looks like you failed 1 test of 12.
t/not_found.t ................. Dubious,test returned 1 (wstat 256,0x100)
Failed 1/12 subtests

Test Summary Report
-------------------
t/found.t                   (Wstat: 1536 Tests: 6 Failed: 6)
  Failed tests:  1-6
  Non-zero exit status: 6
t/headers.t                 (Wstat: 768 Tests: 5 Failed: 3)
  Failed tests:  3-5
  Non-zero exit status: 3
t/not_found.t               (Wstat: 256 Tests: 12 Failed: 1)
  Failed test:  5
  Non-zero exit status: 1
Files=10,Tests=27,9 wallclock secs ( 0.09 usr +  0.06 sys =  0.16 CPU)
Result: FAIL
Failed 3/10 test programs. 10/27 subtests failed.
NMAKE : fatal error U1077: 'C:Perl5.14binperl.exe' : return code '0x1'
Stop.
  MATTN/Devel-CheckLib-0.98.tar.gz
  C:PROGRA~2MICROS~1.0VCbinnmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module,try:
  reports MATTN/Devel-CheckLib-0.98.tar.gz
Running make install
  make test had returned bad status,won't install without force
Running install for module 'ExtUtils::MakeMaker'
Running make for M/MS/MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
Checksum for C:Perl5.14cpansourcesauthorsidMMSMSCHWERNExtUtils-MakeMaker-6.62.tar.gz ok
........
........
t/Liblist_Kid.t ........... 1/? Note (probably harmless): No library found for unreal_test
Note (probably harmless): No library found for unreal_test
Note (probably harmless): No library found for -llibtest
Note (probably harmless): No library found for -lunreal_test
Note (probably harmless): No library found for unreal_test
Note (probably harmless): No library found for dir_test
Warning: '-Ldir' changed to '-LC:/Perl5.14/cpan/build/ExtUtils-MakeMaker-6.62-IJCHpC/t/liblist/win32/dir'
Warning: '-Ldi r' changed to '-LC:/Perl5.14/cpan/build/ExtUtils-MakeMaker-6.62-IJCHpC/t/liblist/win32/di r'
Note (probably harmless): No library found for unreal_test
Note (probably harmless): No library found for unreal_test
t/Liblist_Kid.t ........... ok
...........
...........
t/MM_Win32.t .............. 1/61
   Failed test 'pasthru()'
   at t/MM_Win32.t line 273.
          got: 'PASTHRU = -nologo'
     expected: 'PASTHRU = '
 Looks like you failed 1 test of 61.
t/MM_Win32.t .............. Dubious,0x100)
Failed 1/61 subtests
        (less 6 skipped subtests: 54 okay)
................
................

t/xs.t .................... skipped: ExtUtils::CBuilder not installed or couldn't find a compiler

Test Summary Report
t/MM_Win32.t            (Wstat: 256 Tests: 61 Failed: 1)
  Failed test:  49
  Non-zero exit status: 1
Files=59,Tests=976,139 wallclock secs ( 0.47 usr +  0.17 sys =  0.64 CPU)
Result: FAIL
Failed 1/59 test programs. 1/976 subtests failed.
NMAKE : fatal error U1077: 'C:Perl5.14binperl.exe' : return code '0xff'
Stop.
  MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
  C:PROGRA~2MICROS~1.0VCbinnmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module,try:
  reports MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
Running make install
  make test had returned bad status,won't install without force
Running make for D/DM/DMAKI/ZeroMQ-0.21.tar.gz
Warning: Prerequisite 'Devel::CheckLib => 0.4' for 'DMAKI/ZeroMQ-0.21.tar.gz' failed when processing 'MATTN/Devel-CheckLib-0.98.tar.gz' with 'make_test =
chances to succeed are limited.
Warning: Prerequisite 'ExtUtils::MakeMaker => 6.62' for 'DMAKI/ZeroMQ-0.21.tar.gz' failed when processing 'MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz' with
inuing,but chances to succeed are limited.

  CPAN.pm: Going to build D/DM/DMAKI/ZeroMQ-0.21.tar.gz

Probing environment variables:
 + Detected ZMQ_INCLUDES from ZMQ_HOME...
 + Detected ZMQ_LIBS from ZMQ_HOME...
Probing libzmq via pkg-config ...
Package libzmq was not found in the pkg-config search path.
Perhaps you should add the directory containing `libzmq.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libzmq' found
 - No libzmq found...
Probing zeromq2 via pkg-config ...
Package zeromq2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `zeromq2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'zeromq2' found
 - No zeromq2 found...
Detected the following ZMQ settings:
 + ZMQ_HOME = C:UserskallolDesktopperl_testzeromq-2.2.0
 + ZMQ_H = C:UserskallolDesktopperl_testzeromq-2.2.0include
 + ZMQ_INCLUDES = C:UserskallolDesktopperl_testzeromq-2.2.0include
 + ZMQ_LIBS = -LC:UserskallolDesktopperl_testzeromq-2.2.0lib
 + ZMQ_TRACE = (null)
Can't link/include C library 'zmq.h','zmq',aborting.
Warning: No success on command[C:Perl5.14binperl.exe Makefile.PL INSTALLDIRS=site]
  DMAKI/ZeroMQ-0.21.tar.gz
  C:Perl5.14binperl.exe Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
  Make had some problems,won't test
Running make install
  Make had some problems,won't install
Failed during this command:
 MATTN/Devel-CheckLib-0.98.tar.gz             : make_test NO
 MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz      : make_test NO
 DMAKI/ZeroMQ-0.21.tar.gz                     : writemakefile NO 'C:Perl5.14binperl.exe Makefile.PL INSTALLDIRS=site' returned status 512

安装程序似乎正在使用Visual C 2010中的nmake.

解决方法

您的系统无法安装两个依赖项,整个工具链会被错误地添加.我该怎么解决它:

>卸载MSVC和nmake.>升级到受支持的ActivePerl版本(5.14).>安装包含MinGW的ppm包.这为您提供了适当的编译器.>安装ExtUtils :: MakeMaker和Devel :: CheckLib.>像以前一样安装ZeroMQ.

(编辑:李大同)

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

    推荐文章
      热点阅读