gpt4 book ai didi

linux - 无法安装 mojolicious

转载 作者:太空宇宙 更新时间:2023-11-04 05:43:09 24 4
gpt4 key购买 nike

我运行此命令来安装 mojolicious,并得到以下命令。不知道如何解决,请帮忙。

~$ sudo curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org -n Mojolicious


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload Upload Total Spent Left Speed
100 297k 100 297k 0 0 98815 0 0:00:03 0:00:03 --:--:-- 98825
!
! Can't write to /usr/local/share/perl/5.18.2 and /usr/local/bin: Installing modules to /home/foneworx/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 /usr/local/share/perl/5.18.2 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)

最佳答案

sudo你的文件下载(完全没用),但不要sudo Perl。 Perl 是您需要提升以授予系统写入权限的命令。

正确的命令行是:

curl -L https://cpanmin.us | sudo perl - -M https://cpan.metacpan.org -n Mojolicious

或者您可以只使用常规的 CPAN 界面(我不熟悉 cpanminus):

sudo perl -MCPAN -e 'install Mojolicious'

关于linux - 无法安装 mojolicious,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39485188/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com