首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CPANM路径未正确配置

CPANM路径未正确配置
EN

Stack Overflow用户
提问于 2016-02-01 18:35:09
回答 1查看 501关注 0票数 1

提取草莓Perl的新副本后,我在CPANM中得到一个错误。

代码语言:javascript
复制
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之后,我会得到一个稍微不同的错误。

代码语言:javascript
复制
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上运行这个程序。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-02-01 18:44:50

脚本可以

代码语言:javascript
复制
$0 !~ /^$install_base/

$0在哪里

代码语言:javascript
复制
C:\portable_perl\perl\site\bin/cpanm

$install_base

代码语言:javascript
复制
C:\portable_perl\perl\site\bin

没想到会有反斜杠。\po\pe\s\b在正则表达式中都有着特殊的意义。这是cpanm中的一个bug。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35137799

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档