我安装了本地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) 结果:通过 -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
答案 0 :(得分:0)
/homes/ar312/.bashrc: Permission denied
有问题。解决方法:运行
eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
在每个登录会话中手动。