I'm using GNU Emacs from emacsformacos.com After Migration to OSX 10.11 "El Capitan", Auctex can't run the *tex utilities anymore:
Running `LaTeX' on `poisson' with ``pdflatex -file-line-error -interaction=nonstopmode "\input" poisson.tex''
/bin/sh: pdflatex: command not found
There is no problem running for example pdflatex on the shell:
#pdflatex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)
restricted \write18 enabled.
but it seems that auctex calls /bin/sh pdflatex instead, and that does not work anymore:
/bin/sh pdflatex
/Library/TeX/texbin/pdflatex: /Library/TeX/texbin/pdflatex: cannot execute binary file
maybe due to El Capitan's changes to Gatekeeper sandboxing. How can I configure auctex to run pdflatex again?
exec-pathwell set anyway because it's used elsewhere (for example inTeX-doc) – giordano Nov 03 '15 at 10:33