I've just installed Tex Live on Windows. However, when I tried the pdflatex command, the command failed as an nonexistent command. In an attempt to fix this, I did a filename search for "pdflatex" and added the directory C:\texlive\2017\bin\win32 to the PATH variable. Subsequently, the pdflatex command worked, but I then got the below output:
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/W32TeX) (preloaded
format=pdflatex)
restricted \write18 enabled.
kpathsea: Running mktexfmt pdflatex.fmt
The command name is C:\texlive\2017\bin\win32\mktexfmt
Running the command C:\texlive\2017\bin\win32\fmtutil-user.exe
I can't find the format file `pdflatex.fmt'!
The directory 2017 is also somewhat troubling because I just installed the latest version of Tex Live, which I understand to have been released this year, so there might be a file conflict with a previous Tex Live install attempt (I would have attempted a clean reinstall, but I'm unsure how to uninstall Tex Live completely). I've looked at some other questions (1, 2, 3), but the first 2 don't appear to apply to Windows, and regarding the third question I would prefer not to install the TeX Live Package Manager unless it proves to be necessary.
So my question is: how do I fix the error so I can convert my .tex to a .pdf?
\texlive\2018directory? what did you install? – David Carlisle May 18 '18 at 18:30\texlive\2018directory. I installed using an installer from the tug website. – Graham May 18 '18 at 18:38