我想让TWIKI工作(虚拟服务器Hosteurope .. PLESK 11 CentOS 6)。 当我运行configure脚本时,出现以下错误:
[root@lvpsx.x.x.x bin]# ./configure
Failed to load the perl module FindBin. The module was found at /usr/share/perl5/FindBin.pm
Please ensure that:
1 FindBin is installed,
2 that the module is available on the @INC path,
3 that the webserver user (root) has permission to read the FindBin.pm file.
The detailed error seen was:
Subroutine export_fail redefined at /usr/share/perl5/Carp.pm line 25.
Compilation failed in require at /usr/share/perl5/FindBin.pm line 95.
BEGIN failed--compilation aborted at /usr/share/perl5/FindBin.pm line 95.
Compilation failed in require at (eval 3) line 2.
BEGIN failed--compilation aborted at (eval 3) line 2.
我对shell的使用只有很少的知识,而且对Perl的经验却少得多。
我以root身份运行configure脚本。据我所知,Apache也以root身份运行(PLESK 11)。
FindBin.pm
位于指定的目录中,我已尝试将其设置为777。
答案 0 :(得分:0)
尝试安装VMS :: Filespec,这似乎是FindBin试图要求的模块。
在shell上:
cpanm VMS::Filespec
如果这不起作用(命令失败),请先尝试:
cpan App::cpanminus
...然后再次尝试第一个命令。
HTH
旧金山