Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The program 'latexmk' could not be found. #1589

Open
1 task done
viktorashi opened this issue Feb 9, 2025 · 0 comments
Open
1 task done

The program 'latexmk' could not be found. #1589

viktorashi opened this issue Feb 9, 2025 · 0 comments

Comments

@viktorashi
Copy link

I'm using it with Latex-Workshop in VSCode on MacOS Sonoma 14.5 (23F79) and I'm getting Recipe terminated with error. Retry building the project. every time. When i go to check the logs I see

2025-02-09 03:03:47,743+0200 INFO  latexmk - this process (20868) started by "Code Helper (Plugin)" in directory /my/project/folder with command line: latexmk -outdir=PDF -c /my/project/folder/root.tex
2025-02-09 03:03:47,747+0200 FATAL latexmk.core - The program '{name}' could not be found.
2025-02-09 03:03:47,747+0200 FATAL latexmk.core - Data: path="scripts/latexmk/latexmk.pl", name="latexmk", engine="perl"
2025-02-09 03:03:47,747+0200 FATAL latexmk.core - Source: Libraries/MiKTeX/Core/Session/runperl.cpp:57
2025-02-09 03:03:47,748+0200 FATAL latexmk - The program 'latexmk' could not be found.
2025-02-09 03:03:47,748+0200 FATAL latexmk - Info: path="scripts/latexmk/latexmk.pl", name="latexmk", engine="perl"
2025-02-09 03:03:47,748+0200 FATAL latexmk - Source: Libraries/MiKTeX/Core/Session/runperl.cpp
2025-02-09 03:03:47,748+0200 FATAL latexmk - Line: 57

now that i remember initially i was getting the same error as #1053 , but not anymore apparently

Some more googling lead me to think i don't have perl installed, but being on MacOS where it is installed by default, doing a perl -v shows that everything is ok, maybe It's out of date tho? So i go and get Perl Brew to get the latest version .... still, same issue. I try updating my env veriables via this ancient version, just end up breaking my system even more, so i revert back.. To help you, this is the output from:

initexmf --report

ReportDate: 2025-02-09 03:09:37
CurrentVersion: 22.1
SetupDate: 2025-02-09 02:05:00
SetupVersion: 22.1
Configuration: Regular
GitInfo: 6b3d82b7d / 2022-01-30 11:05:07
OS: Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103 x86_64
SharedSetup: no
LinkTargetDirectory: /Users/viktorashi/bin
PathOkay: yes
LastUpdateCheck: 2025-02-09 02:05:43
LastUpdate: 2025-02-09 02:05:50
LastUpdateDb: 2025-02-09 02:05:42
SystemAdmin: no
RootPrivileges: no
AdminMode: no
Root0: /Users/viktorashi/Library/Application Support/MiKTeX/texmfs/config
Root1: /Users/viktorashi/Library/Application Support/MiKTeX/texmfs/data
Root2: /Users/viktorashi/Library/Application Support/MiKTeX/texmfs/install
UserInstall: /Users/viktorashi/Library/Application Support/MiKTeX/texmfs/install
UserConfig: /Users/viktorashi/Library/Application Support/MiKTeX/texmfs/config
UserData: /Users/viktorashi/Library/Application Support/MiKTeX/texmfs/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant