无法安装MongoDB perl

时间:2014-08-08 15:44:28

标签: perl mongodb cygwin cpan

我正在使用新的Win7-64bit盒子,取代旧的XP-32bit盒子。 在这两种情况下我都使用Cygwin perl。 尽管以前在旧盒子上安装并使用了perl MongoDB模块,但我还没有能够在新盒子上安装cpan。 我已在新盒子上成功安装了其他模块(例如YAML),但MongoDB失败了 在其中一个先决条件Config :: AutoConf失败时:

看起来你失败了12次测试28。

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 个答案:

答案 0 :(得分:1)

Config::AutoConf需要许多必备的编译器工具链,库和头文件才能正常运行。在Cygwin上,安装gccg++软件包可以为您提供所需的一切。