且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

以非root用户身份运行时,Perl模块无法正确加载

更新时间:2023-10-22 22:17:22

List / Util / Util.so

List/Util/Util.so probably exists twice in

/usr/local/lib64/perl5 
/usr/local/share/perl5 
/usr/lib64/perl5/vendor_perl 
/usr/share/perl5/vendor_perl 
/usr/lib64/perl5 
/usr/share/perl5 

它们是不同的版本。较新的版本只能由root用户访问。如果这是问题,将使用

They are different versions. The newer one can only be accessed by root. If this is the problem it will be solved using

chmod -R go+rX                   \
   /usr/local/lib64/perl5        \
   /usr/local/share/perl5        \
   /usr/lib64/perl5/vendor_perl  \
   /usr/share/perl5/vendor_perl  \
   /usr/lib64/perl5              \
   /usr/share/perl5