1

我正在尝试让 TWIKI 工作(虚拟服务器 Hosteurope .. PLESK 11 CentOS 6)。当我运行配置脚本时,出现以下错误:

   [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 身份运行配置脚本。据我所知,Apache 也以 root 身份运行(PLESK 11)。 FindBin.pm位于命名目录中,我已经尝试将其设置为 777。

4

1 回答 1

0

尝试安装 VMS::Filespec,这似乎是 FindBin 试图要求的模块。

在外壳上:

cpanm VMS::Filespec

如果这不起作用(命令失败),请先尝试:

cpan App::cpanminus

...然后再次尝试第一个命令。

高温高压

弗朗西斯科

于 2013-03-31T04:58:41.790 回答