我已经安装了本地 Lib,当我尝试安装模块时,它给了我错误,我没有安装模块的权限。
您可能必须 su 到 root 才能安装该软件包。
以下是我用来下载 local::Lib 的步骤
-bash-3.2$ perl Makefile.PL --bootstrap
*** Module::AutoInstall configuration finished.
Writing Makefile for local::lib
Writing MYMETA.yml and MYMETA.jsonake
make test
所有测试成功。Files=8, Tests=35, 1 wallclock secs (0.06 usr 0.02 sys + 0.28 cusr 0.08 csys = 0.44 CPU) 结果: PASS -bash-3.2$
make install
-bash-3.2$ make install
Manifying blib/man3/POD2::PT_BR::local::lib.3pm
lib/POD2/PT_BR/local/lib.pod:1: Unknown command paragraph "=encoding utf8"
Manifying blib/man3/lib::core::only.3pm
Manifying blib/man3/local::lib.3pm
lib/local/lib.pm:551: Unknown command paragraph "=encoding utf8"
Manifying blib/man3/POD2::DE::local::lib.3pm
lib/POD2/DE/local/lib.pod:1: Unknown command paragraph "=encoding utf8"
Appending installation info to /homes/ar312/perl5/lib/perl5/x86_64-linux-thread- multi/perllocal.pod
echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >>~/.bashrc