How can I setup PGFPlots to work with gnuplot?

Notes: I'm using Windows 8 and TeXworks. Also, I have never used gnuplot by itself, so I am unfamiliar with it.

I'm trying to use PGFPlots with gnuplot to graph functions. I have not been able to make anything work at all. I'm reading the PGFPlots manual, but I can't make heads or tails from the instructions.

This is the MWE given in the manual:

\documentclass{memoir}

\usepackage{pgfplots}
\pgfplotsset{compat=1.8}

\begin{document}

\begin{tikzpicture}
\begin{axis}
gnuplot[id=sin]{sin(x)};
\end{axis}
\end{tikzpicture}

\end{document}


Which SHOULD create this:

However, I get nothing except an error:

I tried modifying TeXworks in the following manner as the PGFPlots manual discussed, trying all the variations I could think of with pdflatex -shell-enable, -shell-enable --shell-enable -enable-write18, ad nauseum. Nothing worked.