提取草莓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.
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?如果这一点重要的话,我将在Windows7 x64上运行这个程序。
发布于 2016-02-01 18:44:50
脚本可以
$0 !~ /^$install_base/$0在哪里
C:\portable_perl\perl\site\bin/cpanm而$install_base是
C:\portable_perl\perl\site\bin没想到会有反斜杠。\po、\pe、\s和\b在正则表达式中都有着特殊的意义。这是cpanm中的一个bug。
https://stackoverflow.com/questions/35137799
复制相似问题