CPANM 路径配置不正确
CPANM path not configured correctly
提取 Strawberry 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?如果重要的话,我是 运行 Windows 7 x64。
脚本确实如此
[=10=] !~ /^$install_base/
其中 [=13=]
是
C:\portable_perl\perl\site\bin/cpanm
并且$install_base
是
C:\portable_perl\perl\site\bin
不需要反斜杠。 \po
、\pe
、\s
和 \b
在正则表达式模式中都有特殊含义。这是 cpanm
.
中的错误
提取 Strawberry 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?如果重要的话,我是 运行 Windows 7 x64。
脚本确实如此
[=10=] !~ /^$install_base/
其中 [=13=]
是
C:\portable_perl\perl\site\bin/cpanm
并且$install_base
是
C:\portable_perl\perl\site\bin
不需要反斜杠。 \po
、\pe
、\s
和 \b
在正则表达式模式中都有特殊含义。这是 cpanm
.