[OS X TeX] With latexmk.universal-darwin package "latexmk.pl" script and directory are missing
Victor Toni
victor.toni at gmail.com
Mon Mar 9 10:18:48 EDT 2026
While trying a setup with VSCode and the extension
https://github.com/James-Yu/LaTeX-Workshop I get errors for compilation of
my basic document.
As "pdflatex" works is seems to be "latexmk" related, as this is the
default used by LaTeX-Workshop.
The error "LaTeX fatal error on PID undefined. Error: spawn latexmk ENOENT"
is a bit misleading as later on it refers to an eventually wrong $PATH.
But $PATH is correct and contains "/Library/TeX/texbin".
"realpath /Library/TeX/texbin/" resolves to "/usr/local/texlive/2026basic/
bin/universal-darwin".
"/Library/TeX/texbin/latexmk" is a symlink pointing to
"../../texmf-dist/scripts/latexmk/latexmk.pl" but there is no "latexmk"
directory in scripts:
❯ ls -l /usr/local/texlive/2026basic/texmf-dist/scripts/
total 0
drwxr-xr-x 3 root wheel 96 Mar 1 23:52 attachfile2
drwxr-xr-x 3 root wheel 96 Mar 1 23:52 context
drwxr-xr-x 3 root wheel 96 Mar 1 23:52 epstopdf
drwxr-xr-x 3 root wheel 96 Mar 1 23:52 extractbb
drwxr-xr-x 3 root wheel 96 Mar 1 23:52 lua-alt-getopt
drwxr-xr-x 3 root wheel 96 Mar 1 23:52 luaotfload
drwxr-xr-x 3 root wheel 96 Mar 1 23:52 lwarp
drwxr-xr-x 22 root wheel 704 Mar 1 23:52 make4ht
drwxr-xr-x 3 root wheel 96 Mar 1 23:52 simpdftex
drwxr-xr-x 8 root wheel 256 Mar 1 23:52 tex4ebook
drwxr-xr-x 13 root wheel 416 Feb 18 2024 tex4ht
drwxr-xr-x@ 20 root staff 640 Mar 8 23:29 texlive
drwxr-xr-x 17 root wheel 544 Mar 1 23:53 texlive-extra
drwxr-xr-x 3 root wheel 96 Mar 1 23:53 thumbpdf
drwxr-xr-x 4 root wheel 128 Mar 1 23:53 tlshell
and no "latexmk.pl" script in the whole distribution
❯ find /usr/local/texlive/ | grep latexmk
/usr/local/texlive/2026basic/bin/universal-darwin/latexmk
/usr/local/texlive/2026basic/texmf-dist/scripts/make4ht/
extensions/make4ht-ext-latexmk_build.lua
/usr/local/texlive/2026basic/tlpkg/tlpobj/latexmk.universal-darwin.tlpobj
/usr/local/texlive/2026basic/tlpkg/backups/latexmk.
universal-darwin.r57908.tar.lz4
/usr/local/texlive/2025basic/texmf-dist/scripts/make4ht/
extensions/make4ht-ext-latexmk_build.lua
After some back and forth I found out that installing
"latexmk.universal-darwin" alone is not sufficient (it was already) but I
have to manually install "latexmk" as well.
Not sure if this is a user error or if "latexmk.universal-darwin" should
declare a dependency to "latexmk" so that it gets installed automatically.
At least when using the TeX Live Utility (what I did) it is not obvious
that one should install both.
Best regards,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20260309/64c105a2/attachment.htm>
More information about the MacOSX-TeX
mailing list