perl – 为什么plenv install-cpanm安装到错误的位置?
发布时间:2020-12-15 23:34:15 所属栏目:大数据 来源:网络整理
导读:我的plenv设置发生了一些古怪的事情,我没有理解它. plenv install-cpanm% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 297k 100 297k 0 0 1571k 0 --:--:-- --:--:-- --:--:-- 1567k!! Can't wr
我的plenv设置发生了一些古怪的事情,我没有理解它.
plenv install-cpanm % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 297k 100 297k 0 0 1571k 0 --:--:-- --:--:-- --:--:-- 1567k ! ! Can't write to /Library/Perl/5.18 and /usr/local/bin: Installing modules to /Users/olaf/perl5 ! To turn off this warning,you have to do one of the following: ! - run me as a root or with --sudo option (to install to /Library/Perl/5.18 and /usr/local/bin) ! - Configure local::lib in your existing shell to set PERL_MM_OPT etc. ! - Install local::lib by running the following commands ! ! cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) ! App::cpanminus is up to date. (1.7042) $plenv which cpanm plenv: cpanm: command not found $find /Users/olaf | grep bin/cpanm /Users/olaf/.cpanm/work/1482416411.97013/App-cpanminus-1.7042/bin/cpanm /Users/olaf/.cpanm/work/1482416863.23085/App-cpanminus-1.7042/bin/cpanm /Users/olaf/perl5/bin/cpanm $find /Users/olaf/.plenv | grep cpanm /Users/olaf/.plenv/libexec/plenv-install-cpanm /Users/olaf/.plenv/plenv.d/rehash/rehash_cpanm.bash 我希望cpanm安装在?/ .plenv里面的某个地方,但那只是没有发生.我猜我的点文件/ shell设置/ $ENV搞砸了? 这就是我的$ENV的样子: env | grep PLENV PLENV_SHELL=bash 另外,我的PATH的开头是: PATH = /用户/奥拉夫/ .plenv /垫片:/Users/olaf/.plenv/bin 解决方法
我得到了Tatsuhiko Miyagawa的帮助.事实证明,我已经通过plenv切换到系统Perl并且期望它以与Plenv为您安装的Perls相同的方式处理模块安装.解决方案只是选择我之前通过plenv(plenv本地5.24.0)然后安装到plenv install-cpanm的Perl版本. Tatsuhiko Miyagawa还指出,我需要为我安装的每个Perl版本安装-cpanm.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |