为什么我不能使用模板工具包?

时间:2020-03-06 14:58:47  来源:igfitidea点击:

我正在尝试使用TemplateToolkit而不是良好的ole'变量插值,而我的服务器让我很伤心。这是我遇到的错误:

*** 'D:\Inetpub\gic\source\extjs_source.plx' error message at: 2008/09/30 15:27:37 failed to create context: failed to create context: failed to load Template/Stash/XS.pm: Couldn't load Template::Stash::XS 2.20:

Can't load 'D:/Perl/site/lib/auto/Template/Stash/XS/XS.dll' for module Template::Stash::XS: load_file:The specified procedure could not be found at D:/Perl/lib/DynaLoader.pm line 230.  at D:/Perl/site/lib/Template/Stash/XS.pm line 31

BEGIN failed--compilation aborted at D:/Perl/site/lib/Template/Stash/XS.pm line 31. Compilation failed in require at D:/Perl/site/lib/Template/Config.pm line 82.

该平台是Windows Server 2003,我们将ActiveState perl和PPM用于带有IIS的软件包。

解决方案

我想了很久。显然,ActiveState人员并没有对包进行太多检查,因为它需要Template :: Stash :: XS,但实际上在PPM中不可用。要解决此问题,只需编辑Template / Config.pm,然后将Template :: Stash :: XS更改为Template :: Stash。

据我所知,如果模板工具包可用于Strawberry Perl,那么我们绝对应该考虑改用Strawberry。