This minimal example produces an error (undefined control sequences):
% !TEX TS-program = pdflatexmk
\documentclass{article}
\usepackage{tikz}
\usepackage{preview}
\begin{document}
Hello.
\end{document}
Once the tikz package is removed, it compiles fine. Removing either usepackage commands allows the program to compile. Moreover, including both, but adding the [active] option to preview allows the script to compile.
I've pasted the log file here.
preview.stywith\usepackage[active]{preview}, it does run. – sgmoye Sep 22 '14 at 13:25kpsewhich pgfutil-latex.defon the command line. – Ulrike Fischer Sep 22 '14 at 13:57