当我尝试安装模块时,草莓,cygwin和win10上的cpanm给我“权限被拒绝”的原因是什么?
cpanm (App::cpanminus) 1.7044 on perl 5.028000 built for MSWin32-x64-multi-thread
Work directory is c:\my/.cpanm/work/1532346481.6204
You have make C:\Strawberry\c\bin\gmake.exe
You have LWP 6.34
You have C:\cygwin64\bin\tar.exe, C:\cygwin64\bin\gzip.exe and C:\cygwin64\bin\bzip2.exe
You have C:\cygwin64\bin\unzip.exe
Searching RDF::Trine () on cpanmetadb ...
--> Working on RDF::Trine
Fetching http://www.cpan.org/authors/id/G/GW/GWILLIAMS/RDF-Trine-1.019.tar.gz
-> OK
Unpacking RDF-Trine-1.019.tar.gz
Entering RDF-Trine-1.019
Checking configure dependencies from META.yml
Configuring RDF-Trine-1.019
Running Makefile.PL
Can't open perl script "Makefile.PL": Permission denied
这在(win7)之前有效。我以管理员身份运行cmd并设置了文件关联:
>assoc .pl
.pl=Perl_program_file
>ftype Perl_program_file
Perl_program_file=c:\Strawberry\perl\bin\perl.exe "%1"