代码之家  ›  专栏  ›  技术社区  ›  wytten

无法安装MongoDB perl

  •  1
  • wytten  · 技术社区  · 11 年前

    我有一个新的Win7-64bit盒子在工作,取代了一个旧的XP-32bit盒子。 在这两种情况下,我都使用Cygwin perl。 尽管以前已经在旧机箱上安装并使用了perlMongoDB模块,但我还无法在新机箱上使用cpan安装它。 我已经成功地在新盒子上安装了其他模块(例如YAML),但MongoDB失败了 在其一个先决条件上配置::AutoConf,失败原因为:

    看起来你28次考试中有12次失败了。

    64位上的Config::AutoConf是否存在已知问题?对如何进行有什么建议吗?

    # Found AWK as /usr/bin/gawk
    # Found SED as /usr/bin/sed
    # Found EGREP as /usr/bin/egrep
    t/01.checkprog.t .. ok
    t/02.compile.t .... 4/?
    #   Failed test 'PERL_VERSION_STRING declared'
    #   at t/02.compile.t line 40.
    t/02.compile.t .... 8/?
    #   Failed test 'PERL_API_* declared'
    #   at t/02.compile.t line 43.
    t/02.compile.t .... 9/?
    #   Failed test 'perl_parse() declared'
    #   at t/02.compile.t line 48.
    
    #   Failed test 'I32 is valid type'
    #   at t/02.compile.t line 53.
    t/02.compile.t .... 11/?
    #   Failed test '[SAH]V * are valid types'
    #   at t/02.compile.t line 56.
    t/02.compile.t .... 12/?
    #   Failed test 'I32 has size of n/a bytes'
    #   at t/02.compile.t line 61.
    t/02.compile.t .... 13/?
    #   Failed test 'Could determined sizes for I32, SV *, AV, HV *, SV.sv_refcnt'
    #   at t/02.compile.t line 63.
    t/02.compile.t .... 14/?
    #   Failed test 'have struct av.sv_any member'
    #   at t/02.compile.t line 70.
    t/02.compile.t .... 16/?
    #   Failed test 'have struct hv.sv_any and struct STRUCT_SV.sv_any members'
    #   at t/02.compile.t line 73.
    t/02.compile.t .... 17/?
    #   Failed test 'Align of I32'
    #   at t/02.compile.t line 78.
    t/02.compile.t .... 18/?
    #   Failed test 'Align of SV.sv_refcnt'
    #   at t/02.compile.t line 80.
    t/02.compile.t .... 19/?
    #   Failed test 'Could determined sizes for I32, U32, AV, HV *, SV.sv_refcnt'
    #   at t/02.compile.t line 82.
    # Looks like you failed 12 tests of 28.
    
    1 回复  |  直到 11 年前
        1
  •  1
  •   friedo    11 年前

    Config::AutoConf 需要大量必备的编译器工具链、库和头文件才能正常运行。在Cygwin上,安装 gcc g++ 包裹应该能给你所需要的一切。

    推荐文章