使用FormValidator :: Simple;导致编译失败

时间:2011-08-12 03:48:09

标签: perl

[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;行的错误堆栈,

以前是否有人遇到过同样的问题?

1 个答案:

答案 0 :(得分:2)

如果Perl的一部分Config模块停止导出%Config,则会发生该错误。

我怀疑你创建了一个名为“Config”的模块,它被Time :: Local而不是与Perl相同名称的模块接收。重命名模块。