我正在尝试通过cpanm安装Glib模块。我有所有的先决条件,但在“构建和测试”阶段,安装失败。我检查了构建日志,当应用程序名为“cc Glib.c”时,我的访问被拒绝了。我有MinGw编译器,我是我的电脑的管理员。有任何想法吗?在此先感谢您的帮助。
编辑:这是构建日志最后四行的实际错误消息。
[CC Glib.c]
访问被拒绝。
dmake.exe:错误代码129,同时制作'Glib.o'
- >失败安装Glib失败。有关详细信息,请参阅.cpanm \ build.log。
这是完整的日志:
cpanm (App::cpanminus) 1.5015 on perl 5.014002 built for MSWin32-x86-multi-thread Work directory is /.cpanm/work/1342897626.5500 You have make C:\Perl\c\bin\dmake.exe You have LWP 6.03 You have C:\Eclipse\bin\tar.exe, C:\Eclipse\bin\gzip.exe and C:\Eclipse\bin\bzip2.exe Searching Glib on cpanmetadb ... --> Working on Glib Fetching http://www.cpan.org/authors/id/X/XA/XAOC/Glib-1.261.tar.gz -> OK Unpacking Glib-1.261.tar.gz Entering Glib-1.261 Checking configure dependencies from META.yml Configuring Glib-1.261 Running Makefile.PL Including generated API documentation... Checking if your kit is complete... Looks good Writing Makefile for Glib Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.62) Checking if you have ExtUtils::Depends 0.300 ... Yes (0.304) Checking if you have ExtUtils::PkgConfig 1.00 ... Yes (1.13) Building and testing Glib-1.261 cp lib/Glib/GenPod.pm blib\lib/Glib/GenPod.pm cp build/IFiles.pm blib\arch/Glib/Install/Files.pm cp C:\.cpanm\work\1342897626.5500\Glib-1.261\typemap blib\arch/Glib/Install/typemap cp lib/Glib.pm blib\lib/Glib.pm cp gperl.h blib\arch/Glib/Install/gperl.h cp lib/Glib/Object/Subclass.pm blib\lib/Glib/Object/Subclass.pm cp devel.pod blib\lib/Glib/devel.pod cp gperl_marshal.h blib\arch/Glib/Install/gperl_marshal.h cp lib/Glib/MakeHelper.pm blib\lib/Glib/MakeHelper.pm cp lib/Glib/ParseXSDoc.pm blib\lib/Glib/ParseXSDoc.pm cp lib/Glib/CodeGen.pm blib\lib/Glib/CodeGen.pm cp doctypes blib\arch/Glib/Install/doctypes [ XS Glib.xs ] [ CC Glib.c ] Access is denied. dmake.exe: Error code 129, while making 'Glib.o' -> FAIL Installing Glib failed. See \.cpanm\build.log for details.