I am trying to compile a LaTeX source file within Emacs (26.1) using AUCTeX and view the resulting PDF output within an Emacs buffer. I'm using the Windows 10 OS and have downloaded the latest TeXLive distribution as well as pdftools package in Emacs.
Other software that I have downloaded include minGW, Ghostscripts and Strawberryperl as per installation instructions found here
When I enter the appropriate compile command (C-c C-a) in a LaTeX buffer I am prompted in the minibuffer to enter the command C-c C-l to view the results of the compilation.
This command opens a second window but rather than displaying the output of the source file in PDF it displays a lengthy error message of which what looks like the most important part I have pasted below
! ==> Fatal error occurred, no output PDF file produced! Transcript written on pdflatex.log. fmtutil [ERROR]: running `pdftex -ini -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx *pdflatex.ini <nul' return status 1 fmtutil [ERROR]: return error due to options --strict fmtutil [INFO]: Disabled formats: 6 fmtutil [INFO]: Not selected formats: 32 fmtutil [INFO]: Failed to build: 1 (pdftex/pdflatex) fmtutil [INFO]: Total formats: 39 fmtutil [INFO]: exiting with status 1 D:\TexLive\2018\bin\win32\runscript.tlu:803: command failed with exit code 1: perl.exe d:\TexLive\2018\texmf-dist\scripts\texlive\fmtutil.pl --user --byfmt pdflatex Running the command D:\TexLive\2018\bin\win32\fmtutil-user.exe I can't find the format file `pdflatex.fmt'! kpathsea: Running mktexfmt pdflatex.fmt The command name is D:\TexLive\2018\bin\win32\mktexfmt TeX Output exited abnormally with code 1 at Tue Oct 9 18:06:02 D:\emacs-26.1-x86_64\bin
Any ideas what I missing here?
*edit non-default values contained on my file path
**Edit: as described in the comments running a fresh install of MiKTeX and Emacs fixed the issue. I suspect it was a corrupted installation of the TeXLive distribution.
***Edit: problem solved by reinstalling TeXLive. Problem most likely due to faulty installation of the TeXLive distribution.