tlaplus: TLA+ Toolbox can't locate pdflatex
On macOS 10.12.5 and Version 1.5.3 of TLA Toolbox.
$ which pdflatex
/usr/local/bin/pdflatex
But when attempting to pretty print a module from TLA+ Toolbox, I get the following PDF Production error:
TLATeX unrecoverable error: —Trying to run the command
pdflatex SimpleProgram.texproduced the following error Cannot run program “pdflatex” (in directory “/Users/samhavens/tla test/ SimpleProgram.toolbox”): error=2, No such file or directory.
I have LaTex installed via MacTex and Texmaker. I have verified that from the command line I can run pdflatex on .tex files to produce pdfs.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 15 (4 by maintainers)
Hi,
did you try with the pdflatex command set to the complete path “/usr/local/bin/pdflatex” in the Toolbox’s preference?
Good man. I appreciate it!!!!!!!
Thank you, @Calvin-L – good suggestions, and eventually they led me to what I think is the root cause of my problem.
From
fileI get this output:So I don’t think pdftex is a text executable that needs an interpreter.
To try to see whether it’s a path problem, I tried deleting my path and running pdflatex with PATH set to the empty string. It works:
From this I infer that the problem is not the setting of $PATH, or at least not just the setting of $PATH.
Your mention of interpreted executables gave me an idea: in Preferences, I pointed the Toolbox not to pdflatex but to a shell script which invokes pdflatex, but first writes some debugging code to a file in my directory tree. When the Toolbox runs the script, and the script records the contents of /usr/bin, the contents are very unlike what I see when I look at /usr/bin from the shell. Every file is shown as owned by my userid, rather than by root, and the contents of the directory differ: the contents overlap and neither set of programs is a subset of the other. And – of course – pdflatex and pdftex are missing, in the /usr/bin seen by my shell script running from inside the Toolbox.
It looks as though the Flatpak version of TLA+ Toolbox is running in some kind of sandbox. Wikipedia confirms that that is part of the point of Flatpak as a distribution method. The problem is that the sandbox lacks any version of TeX.
So it looks as if I can either live without generating PDF from inside the Toolbox, or reinstall from a different source.
Thank you for your help.