- 论坛徽章:
- 1
|
在Windows10中安装了CygWin64,在用cpanm安装Moose模块时,出现如下错误:
- cpanm (App::cpanminus) 1.7041 on perl 5.022003 built for cygwin-thread-multi
- Work directory is /home/SunnyBoy/.cpanm/work/1494153804.9864
- You have make /usr/bin/make
- You have LWP 6.24
- You have /usr/bin/tar: tar (GNU tar) 1.29
- 由 Cygwin (1.29-1) 打包
- Copyright (C) 2015 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- 这是自由软件:您可以自由地更改并重新发布它。
- 在法律所允许的范围内不含任何担保。
- 由 John Gilmore 和 Jay Fenlason 所写。
- Searching Moose () on cpanmetadb ...
- --> Working on Moose
- Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Moose-2.2005.tar.gz
- -> OK
- Unpacking Moose-2.2005.tar.gz
- Entering Moose-2.2005
- Checking configure dependencies from META.json
- Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.24)
- Checking if you have Dist::CheckConflicts 0.02 ... Yes (0.11)
- Configuring Moose-2.2005
- Running Makefile.PL
- HASCOMPILERt0FW/TESTWfJR.c:2:20: fatal error: EXTERN.h: No such file or directory
- #include "EXTERN.h"
- ^
- compilation terminated.
- Couldn't execute gcc -DPERL_USE_SAFE_PUTENV -D_GNU_SOURCE -U__STRICT_ANSI__ -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.22.3-1 -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.22.3=/usr/src/debug/perl-5.22.3-1 -fwrapv -fno-strict-aliasing -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O3 "-I/usr/lib/perl5/5.22/x86_64-cygwin-threads/CORE" -c HASCOMPILERt0FW/TESTWfJR.c -o HASCOMPILERt0FW/TESTWfJR.o: at Makefile.PL line 12.
- This distribution requires a working compiler at Makefile.PL line 12.
- -> N/A
- -> FAIL Configure failed for Moose-2.2005. See /home/SunnyBoy/.cpanm/work/1494153804.9864/build.log for details.
复制代码 看意思是说,找不到 EXTERN.h 这个文件,可在 lib/perl5/5.22/x86_64-cygwin-threads/CORE 这个文件夹下明明有的啊。
难道是什么环境变量没配置好,还是cpanm没配置好?请高手指点一下。
|
|