# error in using pgfornament package

I have installed all necessary files of pgfornament in texmf/tex/latex and texmf/tex/generic. But when I run even a very simple code (like one below), I get the error message (I have TeXShop in a MAC platform):

! Undefined control sequence.

l.44 \tikzset

         {pgfornamentstyle/.style={}}%


The code I used is (the one from the package documentation):

\documentclass{scrartcl}

\usepackage{pgfornament}

\begin{document}

\pgfornament[width = 2cm,
color = red]{1}

\end{document}


• Compiles fine for me. Is there an earlier error message in the log file? \tikzset is defined by the tikz package which pgfornament loads. – Andrew Swann Dec 15 '14 at 7:41