# epstopdf warning: “Shell escape feature is not enabled.”

I'm having a bit of trouble trying to include .eps files in a LaTeX document compiled with pdfLaTeX. I've been told that I should use the epstopdf package to convert .eps files to .pdf on the fly.

This is my LaTeX code:

\documentclass[12pt]{article}
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}
\begin{document}
\includegraphics{thing.eps}
\end{document}

But when I try to compile it with pdflatex test.tex I get this error:

Package epstopdf Warning: Shell escape feature is not enabled.

(/usr/share/texmf-texlive/tex/latex/latexconfig/epstopdf-sys.cfg))) (./test.aux ) (/usr/share/texmf/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] )

See the pdftex.def package documentation for explanation. Type  H   for immediate help.  ...

l.7 \includegraphics{thing.eps}
?

I'm not sure what to do, I've also tried putting \epstopdfsetup and \epstopdfsetup{} after \usepackage{espstopdf} but that doesn't help.

-
compile with pdflatex --shell-escape test.tex. Which tex distribution do you use? –  Marco Daniel Sep 7 '11 at 15:30
Thanks, that fixed it. Post that as an answer and I'll mark it accepted –  Eddy Sep 7 '11 at 16:45
Btw, I use texlive –  Eddy Sep 7 '11 at 16:45