I have recently updated texlive following these instructions and I have set the new path for latex from an old to the new one by adding the line
PATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH; export PATH
to the end of the /etc/bash.bashrc file, following these instructions.
When running an old .tex file that has already its .log file created I get
! LaTeX Error: File `book.cls' not found.
Actually the whole log file is
LOG FILE : This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2017.12.19) 24 DEC 2017 20:14 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **0.QFT.tex (./0.QFT.tex LaTeX2e <2011/06/27> Babel <3.9h> and hyphenation patterns for 4 languages loaded. ! LaTeX Error: File `book.cls' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: cls) Enter file name: ! Emergency stop. <read *> l.2 ^^M *** (cannot \read from terminal in nonstop modes) Here is how much of TeX's memory you used: 10 strings out of 494985 170 string characters out of 6180355 46094 words of memory out of 5000000 3325 multiletter control sequences out of 15000+600000 3640 words of font info for 14 fonts, out of 8000000 for 9000 36 hyphenation exceptions out of 8191 10i,0n,7p,46b,8s stack positions out of 5000i,500n,10000p,200000b,80000s ! ==> Fatal error occurred, no output PDF file produced!
When running an new simple .tex without its .log file I get
Log File not found !
and no .log file is created.
This is weird since I do have book.cls on the right location
$ kpsewhich book.cls /usr/local/texlive/2017/texmf-dist/tex/latex/base/book.cls
Also my installation seems to be fine since
$ which latex /usr/local/texlive/2017/bin/x86_64-linux/latex
$ which tex /usr/local/texlive/2017/bin/x86_64-linux/tex
I followed the instructions of the second link because previously I was not running with a previous version of latex in
Do you know how can I see where texmaker is actually looking for the book.cls file?
Finally I have been careful not to leave any spaces in any name of the path of my .tex file.
I am using Ubuntu 14.04 and as a compiler Texmaker 4.1. Here are the Texmaker preferences
When compiling on terminal I get:
$ pdflatex 0.QFT.tex This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) restricted \write18 enabled. kpathsea: Running mktexfmt pdflatex.fmt mktexfmt: No such file or directory I can't find the format file `pdflatex.fmt'!
And the same thing I get when typing