MiKTeX 업데이트 후 latexmk가 작동하지 않습니다

MiKTeX 업데이트 후 latexmk가 작동하지 않습니다

저는 MiKTeX/TeXworks를 사용하고 있으며 latexmk몇 년 전에 설정했습니다. MiKTeX를 업데이트한 어제까지 잘 작동했습니다.

latexmk내가 사용하는 조판 루틴은 다음과 같습니다.

여기에 이미지 설명을 입력하세요

그러나 이제 처리 옵션을 사용하여 컴파일하려고 하면 latexmk다음 로그 파일이 생성됩니다.

Latexmk: This is Latexmk, John Collins, 18 June 2019, version: 4.65.
Rule 'pdflatex': The following rules & subrules became out-of-date:
    'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -synctex=1  -recorder  "DOCUMENT.tex"'
------------
Latexmk: applying rule 'pdflatex'...
Can't spawn "pdflatex -synctex=1  -recorder  "DOCUMENT.tex"": Inappropriate I/O control operation at C:\Program Files\MiKTeX 2.9\scripts/latexmk\latexmk.pl line 9732.
Latexmk: fls file doesn't appear to have been made.
Collected error summary (may duplicate other messages):
pdflatex: Command for 'pdflatex' gave return code 255
    Refer to 'DOCUMENT.log' for details
----------------------
This message may duplicate earlier message.
Latexmk: Failure in processing file 'DOCUMENT.tex':
(Pdf)LaTeX didn't generate the expected log file 'DOCUMENT.log'
----------------------
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs, or warnings treated as errors.
Latexmk: Errors, so I did not complete making targets

무엇을 해야할지 검색해 보았지만 지금까지 그다지 유용한 것을 찾지 못했습니다. 누구든지 지침을 제공할 수 있습니까? 수동으로 수행하면 모든 것이 예상대로 컴파일됩니다 pdflatex + bibtex + pdflatex + pdflatex.

TeXworks 버전은 버전 0.6.3(MiKTeX 2.9.7140 64비트)입니다.

latexmk편집: 명령줄에서 실행하여 얻은 내용은 다음과 같습니다 . 오류 메시지

여기에 이미지 설명을 입력하세요

그리고 출력

C:\Users\username\folder>latexmk
Latexmk: This is Latexmk, John Collins, 18 June 2019, version: 4.65.
Latexmk: Disallowing switch of output file as incompatible
    with file requests.
Latexmk: applying rule 'latex'...
Rule 'latex': The following rules & subrules became out-of-date:
      'latex'
------------
Run number 1 of rule 'latex'
------------
------------
Running 'latex  -recorder  "DOCUMENT.tex"'
------------
Can't spawn "latex  -recorder  "DOCUMENT.tex"": Inappropriate I/O control operati
on at C:\Program Files\MiKTeX 2.9\scripts/latexmk\latexmk.pl line 9732.
Latexmk: fls file doesn't appear to have been made.
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  latex: Command for 'latex' gave return code 255
      Refer to 'DOCUMENT.log' for details
----------------------
This message may duplicate earlier message.
Latexmk: Failure in processing file 'DOCUMENT.tex':
   (Pdf)LaTeX didn't generate the expected log file 'DOCUMENT.log'
----------------------
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.

답변1

miktex bin 폴더에 있는 많은 exe 파일은 매우 작습니다. 단순히 래퍼일 뿐입니다. "실제" 애플리케이션 코드는 일부 dll(및/또는 일부 스크립트)에 있으며 래퍼는 "진입점"을 찾아야 합니다. 업데이트 후 진입점이 변경되어 래퍼를 다시 생성해야 하는 경우가 있습니다. 일반적으로 miktex는 이를 처리하지만 어떤 이유로든 실패할 수 있습니다. 이 경우 래퍼는 다음을 사용하여 다시 만들 수 있습니다.

  initexmf --mklinks --admin --force

또는 latexmk와 같은 스크립트만 영향을 받는 경우

  initexmf --mklinks=scripts --admin --force

또한보십시오https://docs.miktex.org/2.9/manual/initecmf.html

관련 정보