[Edited]
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
and
$ 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
usr/share/...
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 latex 0.QFT.tex



bash.bashrc? Are you sure this is the correct file to edit? Are you trying to compile on the command line or in an editor? If an editor, try compiling on the command line: does it work? How does the log/console output begin? Which version of TL does it say you are using? 2017 or not? Upstream or distro? Why did you think you needed the second link's instructions? – cfr Dec 25 '17 at 02:50/usr/local. It is not recommended to keep your Linux distro's TL installed alongside upstreams's: use the instructions in the linked question to remove it and to avoid a dummy package. – cfr Dec 26 '17 at 03:10.log/console output you posted. If it saysDebian, you're using Debian's binary. If it saysTeX Live 2013, you're (nominally) using TeX Live 2013. From upstream, that would mean really using TL 2013. However, that might not be entirely true with repackages stuff from Debian. – cfr Dec 27 '17 at 01:20