Perl CPANM路径配置不正确
在提取草莓Perl的新副本后,我在CPANM中得到一个错误Perl CPANM路径配置不正确,perl,perl-module,cpan,cpanm,Perl,Perl Module,Cpan,Cpanm,在提取草莓Perl的新副本后,我在CPANM中得到一个错误 C:\portable_perl>cpanm --self-upgrade You are running cpanm from the path where your current perl won't install execut ables to. Because of that, cpanm --self-upgrade won't upgrade the version of cpanm you're running.
C:\portable_perl>cpanm --self-upgrade
You are running cpanm from the path where your current perl won't install execut
ables to.
Because of that, cpanm --self-upgrade won't upgrade the version of cpanm you're
running.
cpanm path : C:\portable_perl\perl\bin/cpanm
Install path : C:\portable_perl\perl\site\bin
It means you either installed cpanm globally with system perl, or use distro pac
kages such
as rpm or apt-get, and you have to use them again to upgrade cpanm.
C:\portable_perl>
安装App::cpanminus
后,我得到一个稍微不同的错误
C:\portable_perl>cpanm --self-upgrade
You are running cpanm from the path where your current perl won't install executables to.
Because of that, cpanm --self-upgrade won't upgrade the version of cpanm you're running.
cpanm path : C:\portable_perl\perl\site\bin/cpanm
Install path : C:\portable_perl\perl\site\bin
It means you either installed cpanm globally with system perl, or use distro packages such
as rpm or apt-get, and you have to use them again to upgrade cpanm.
C:\portable_perl>
有没有办法设定路径?或者以不同的方式安装CPANM?如果有必要的话,我将在Windows7x64上运行此脚本。脚本会这样做
$0 !~ /^$install_base/
其中$0
为
C:\portable_perl\perl\site\bin/cpanm
而$install\u base
是
C:\portable_perl\perl\site\bin
这不需要反斜杠\po
、\pe
、\s
和\b
在正则表达式模式中都有特殊意义。这是脚本中的一个bug
$0 !~ /^$install_base/
其中$0
为
C:\portable_perl\perl\site\bin/cpanm
而$install\u base
是
C:\portable_perl\perl\site\bin
这不需要反斜杠
\po
、\pe
、\s
和\b
在正则表达式模式中都有特殊意义。这是cpanm
中的一个bug,看起来像是这样。@ThisSuitesBlacknot我周五花了一整天的时间试图找到答案:(当然有一个解决办法。安装cpanm
的方法有很多种。你甚至在两次测试之间使用了一种。最简单的方法可能是cpanm cpanm
。看起来是这样的。@ThisSuitesBlacknot我周五花了一整天的时间试图找到答案:(当然有解决办法。安装cpanm
的方法有很多种。您甚至在两次测试之间使用了一种。最简单的方法可能是cpanm-cpanm
)。