macOS
macOS
MacTeX is TeX Live with a native Mac installer, so this platform needs no shell work either, with one caveat about the search path at the bottom.
1. Install Texpile
Open the .dmg and drag Texpile to your Applications folder.
2. Install MacTeX
MacTeX is TeX Live packaged as a native Mac installer, notarized by Apple, native on both Intel and Apple silicon, and requiring macOS 11 Big Sur or newer. When it finishes, everything is configured and ready. BasicTeX is the same distribution cut down to about 140 MB: it typesets standard LaTeX documents and you add packages later with tlmgr.
MacTeX installs TeX Live Utility in /Applications/TeX. Use it to keep the distribution updated.
3. If latexmk comes back "not found"
MacTeX symlinks its binaries into /Library/TeX/texbin and puts that on your PATH, but the step can fail to complete, or need a fresh Terminal window before it takes effect. So latexmk can be missing in a Terminal you opened before installing, even though the install succeeded.
Open a new Terminal window first. Texpile reads the environment when it launches, so quit and reopen Texpile as well before deciding something is wrong.
If it is still missing, re-run the MacTeX installer, or open TeX Live Utility and use its repair option.