I just installed Sugar CE 6.5.9 on my server and when I try to access my sugar installation, I receive the following error message "
Warning: Please contact support about failure in /home/server/public_html/Sugar/SugarCE-Full-6.5.9/include/Smarty/Smarty_Compiler.class.php on line 268

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: '{php' . str_repeat(&quot; &quot;, substr_count('{literal}\'; SUGAR.themes.allThemes = eval({/literal}', &quot; &quot) .'}' in /home/server/public_html/Sugar/SugarCE-Full-6.5.9/include/Smarty/Smarty_Compiler.class.php on line 268

". The installation process when through without displaying any error messages. This is on a linux (CentOS) shared server with dedicated IP.