2013-03-30 133 views
1

我想讓TWIKI工作(虛擬服務器Hosteurope .. PLESK 11 CentOS 6)。 當我運行配置腳本出現以下錯誤:twiki「無法加載perl模塊FindBin。」

[[email protected] 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. 

我只有殼的使用邊際知識和用Perl少得多的經驗。

我以root身份運行configure腳本。據我所知,Apache也以root身份運行(PLESK 11)。 FindBin.pm位於命名的目錄中,我已經嘗試將其設置爲777.

回答

0

嘗試安裝VMS :: Filespec,它似乎是FindBin試圖要求的模塊。

在外殼:

cpanm VMS::Filespec

如果不工作(該命令將失敗),那麼首先嚐試:

cpan App::cpanminus

...然後嘗試第一再次命令。

HTH

舊金山