2008-10-01 129 views
3

我正在嘗試使用TemplateToolkit來代替good ole的變量插值,而我的服務器給了我很大的悲傷。下面是我收到的錯誤:爲什麼我不能使用Template Toolkit?

*** '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的軟件包。

回答

14

經過很長時間我纔想到了這一點。顯然,ActiveState的人沒有太多的檢查包,因爲它需要Template :: Stash :: XS,但這在PPM中實際上並不可用。要解決這個問題,只需編輯Template/Config.pm並將Template :: Stash :: XS更改爲Template :: Stash。

+0

不知道什麼時候解決了這個問題,但是通過ppm的當前Template-Toolkit與ActivePerl 5.10.1.1006一起工作良好。 – troyt 2009-10-01 23:05:11

4

從我聽說的話來看,如果Template Toolkit可用於Strawberry Perl,那麼您絕對應該考慮切換到Strawberry。

+0

我很想去,但在決策的低層,我不知道現在是時候了:-) – 2008-10-02 17:51:14

相關問題