I am new to latex, and I have some problems when I try to run a latex code in TexStudio.
I wrote the following latex program in TexStudio:
\documentclass{article}
\begin{document}
Hello world
\end{document}
and when I try to run it, TexStudio shows me the following error:
Could not start Build & View:PdfLatex:
pdflatex.exe -synctex=1 -interaction=nonstopmode
"<FileName>".tex
I am using TexLive in Windows.
I already added C:\texlive\2020\bin\win32 to the PATH,
and in TexStudio -> Options - > Configure TexStudio -> Commands -> PdfLatex, I wrote:
pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex
When I run pdflatex test in the cmd I get:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX) (preloaded format=pdflatex)
restricted \write18 enabled.
kpathsea: Running mktexfmt pdflatex.fmt
The command name is C:\texlive\2020\bin\win32\mktexfmt
Running the command C:\texlive\2020\bin\win32\fmtutil-user.exe
C:\texlive\2020\bin\win32\runscript.tlu:935: C:\texlive\2020\bin\win32\runscript.tlu:858: no appropriate script or program found: fmtutil
I can't find the format file `pdflatex.fmt'!
Can someone please help me ?
update-tlmgr-latest.exefrom here. – Tanvir Sep 29 '20 at 20:02