[Tex/LaTex] Texmaker build problem. Can’t generate new pdf

texmaker

I have installed texmaker (version:4.0.3) and it worked for some test file. But when I tried to run a predefined template, texmaker can't generate the changed pdf (it shows the old pdf). So I checked out the log and found an error

Package epstopdf Warning: Drivers other than `pdftex.def' are not supported.

)) (/usr/share/texlive/texmf-dist/tex/latex/subfigure/subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(/usr/share/texlive/texmf-dist/tex/latex/subfigure/subfigure.cfg))
(./booktabs.sty) (./rotating.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)) (./listings.sty
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty

***
*** This file requires `listings.sty' version 1.5.
*** You have a serious problem, so I'm exiting ...
***

texlive-latex-recommended and texlive-latex-extra both packages are already installed. Also /usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty file is available.

System:

Ubuntu 13.10 64bit

What is the problem? What am I missing?

Best Answer

While debugging, the log file is always a good place to look if you cannot find obvious errors in the code.

One thing to be suspicious about is packages loaded from other places than the latex dist. Double check those.

In this case a stray listings.sty was a problem

Related Question