TeXstudio + MikTex: "오류: 명령이 충돌했습니다: pdflatex.exe"

TeXstudio + MikTex: "오류: 명령이 충돌했습니다: pdflatex.exe"

저는 Win10, MikTex 2.9, TeXstudio를 실행하고 있습니다. 어제 패키지를 업데이트하려고 했는데 컴퓨터가 절전 모드로 전환되어 업데이트가 중단된 것 같습니다. 모든 패키지가 최신인 것처럼 보이지만(그리고 MikTex 콘솔에 "업데이트 없음"이라고 표시됨) 설치 시 무언가 손상된 것 같습니다. MikTeX를 완전히 제거/재설치하는 것 이외의 복구에 대한 제안 사항이 있습니까?

MWE:

\documentclass{article}
\begin{document}
Hello world
\end{document}

TeXstudio 메시지:

Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "temp".tex

Error: Command crashed: pdflatex.exe -synctex=1 -interaction=nonstopmode "temp".tex

Process exited with error(s)

최신 버전의 TeXstudio(2.12.22)를 다운로드하여 설치한 후 TeXstudio를 열고 컴파일하려고 하면 다음 오류 팝업이 나타납니다. 오류 대화 상자: pdflatex.exe - 진입점을 찾을 수 없음

오후 5시에 추가됨:

명령줄에서 "pdflatex temp.tex"와 "texify temp.tex"를 모두 실행하면 동일한 결과가 나타납니다.

C:\Temp>texify temp.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 2.9.7300 64-bit)
_

그리고 그것은 단순히 거기 앉아서 달리고 있습니다. 작업 관리자에서 "TeX .fmt 파일 만들기"라는 프로세스를 찾은 다음miktex-makefmt.log파일:

2020-03-20 16:42:32,481-0500 INFO  miktex-makefmt - starting with command line: miktex-makefmt.exe --engine=pdftex --dest-name=latex --no-dump latex.ini --engine-option=-tcx=cp227.tcx --miktex-disable-maintenance --miktex-disable-diagnose
2020-03-20 16:42:32,491-0500 INFO  makefmt - found input file: C:\Users\<name>\AppData\Local\Programs\MiKTeX 2.9\tex\latex\00miktex\latex.ini
2020-03-20 16:42:32,491-0500 INFO  makefmt - Creating the latex format file...
2020-03-20 16:42:32,511-0500 INFO  makefmt - Running miktex-pdftex.exe...
2020-03-20 16:42:32,511-0500 INFO  makefmt - running: miktex-pdftex.exe --miktex-disable-maintenance --miktex-disable-diagnose --initialize --interaction=nonstopmode --halt-on-error --alias=latex --job-name=latex -tcx=cp227.tcx --enable-etex latex.ini
2020-03-20 16:45:10,847-0500 FATAL miktex-makefmt - miktex-pdftex.exe failed on latex.ini.
2020-03-20 16:45:10,847-0500 FATAL miktex-makefmt - miktex-pdftex.exe failed on latex.ini.
2020-03-20 16:45:10,847-0500 FATAL miktex-makefmt - Info: 
2020-03-20 16:45:10,847-0500 FATAL miktex-makefmt - Source: 
2020-03-20 16:45:10,847-0500 FATAL miktex-makefmt - Line: 0

오후 6시에 추가됨: 달리고 난 후

miktex-pdftex --initialize --enable-etex pdflatex.ini

나는 얻다:

("C:\Users\<name>\AppData\Local\Programs\MiKTeX 2.9\tex/generic/dehyph\dehyph
t.tex"
German Traditional Hyphenation Patterns `dehypht' Version 3.2a <1999/03/03>
(Formerly known under the name `ghyph31' and `ghyphen'.)))
! I can't find file `dehypht-x-2018-03-31.tex'.

답변1

@UlrikeFischer 덕분에 해결책은 명령줄에서 다음을 실행하는 것이었습니다.

initexmf --force --mklinks
initexmf --mklangs

노트:

  • 내 경우에는 첫 번째 줄이 필요하지 않았을 수도 있습니다.
  • MiKTeX를 "개인" 또는 "단일 사용자"로 설치했습니다. "모든 사람을 위한" 또는 "시스템 전체"였다면 --admin이 명령의 끝에 추가해야 했을 것입니다. 보다 https://docs.miktex.org/manual/initecmf.html

관련 정보