我试图使用TemplateToolkit而不是良好的'变量插值,我的服务器给了我很多的悲伤.以下是我得到的错误:
*** '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.