2011-08-12 96 views
0
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] Global symbol "%Config" requires explicit package name at /usr/lib/perl5/5.8.8/Time/Local.pm line 31. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] Global symbol "%Config" requires explicit package name at /usr/lib/perl5/5.8.8/Time/Local.pm line 34. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] BEGIN not safe after errors--compilation aborted at /usr/lib/perl5/5.8.8/Time/Local.pm line 57. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] Compilation failed in require at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/DateTime.pm line 47. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] BEGIN failed--compilation aborted at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/DateTime.pm line 47. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/DateTime/Format/Strptime.pm line 8. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/DateTime/Format/Strptime.pm line 8. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/FormValidator/Simple/Validator.pm line 12. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/FormValidator/Simple/Validator.pm line 12. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/FormValidator/Simple/Constraint.pm line 5. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/FormValidator/Simple/Constraint.pm line 5. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/FormValidator/Simple/Profile.pm line 28. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/FormValidator/Simple/Profile.pm line 28. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/FormValidator/Simple.pm line 10. 
[Fri Aug 12 11:39:54 2011] [error] [client 10.128.2.33] BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/FormValidator/Simple.pm line 10. 

以上是線use FormValidator::Simple;的錯誤堆棧,使用FormValidator :: Simple;造成編譯失敗

是否有以前已經遇到了同樣的問題的人?

回答

2

如果Config模塊(Perl的一部分)停止導出%Config,則會發生此錯誤。

我懷疑你創建了一個名爲「Config」的模塊,它被Time :: Local取代,而不是模塊的名字,它是Perl的一部分。重命名你的模塊。