Mam problem w instalacją smarta. Próbowałem rozwiązań z forum i innych stron ale cały czas mam jakiś błąd

Klase smart mam na dysku d w katalogu smarty
Stronkę na któej chce coś z tego pojąć mam w lokalizacji d:/serwisy/smarty/
tam utworzyłem katalogi, templates, templates_c, cache oraz config
mój plik php wygląda w tej chwili tak :
<?php require('d:/smarty/Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = 'd:/serwisy/smarty/templates'; $smarty->config_dir = 'd:/serwisy/smarty/config'; $smarty->cache_dir = 'd:/serwisy/smarty/cache'; $smarty->compile_dir = 'd:/serwisy/smarty/templates_c'; $smarty = new Smarty; //tworzymy nowy obiekt klasy Smarty $smarty -> assign('powitanie', 'Witaj na Compzone.Org'); $smarty -> assign('pozegnanie', 'Dziękujemy za odwiedziny i zapraszamy ponownie!'); $smarty -> display('ex.tpl'); //Wywołujemy szablon do kompilacji ?>
plik ex jest w katalogu templates
a wyskakuje taki błąd
Kod
Warning: Smarty::_compile_resource(d:\smarty\internals\core.write_compiled_resource.php) [function.-compile-resource]: failed to open stream: No such file or directory in d:\smarty\Smarty.class.php on line 1432
Fatal error: Smarty::_compile_resource() [function.require]: Failed opening required 'd:\smarty\internals\core.write_compiled_resource.php' (include_path='.;C:\php5\pear') in d:\smarty\Smarty.class.php on line 1432
Fatal error: Smarty::_compile_resource() [function.require]: Failed opening required 'd:\smarty\internals\core.write_compiled_resource.php' (include_path='.;C:\php5\pear') in d:\smarty\Smarty.class.php on line 1432
a mam krasnala zaintstalowanego w domyślnej lokalizacji
Może mi ktoś poradzić jak to poprawić
Z góry dziękuje za pomoc
Pozdrawiam
Rafał