My.emacs contains
(setenv "PATH" (concat ".:/usr/texbin:/opt/local/bin" (getenv "PATH"))) (setq exec-path (append exec-path '(".:/usr/texbin:/opt/local/bin"))) (add-to-list 'load-path "/usr/local/share/emacs/site-lisp") (require 'tex-site) (load "auctex.el" nil tt) (load "preview-latex.el" nil tt)
/ usr / texbin is where the latex / pdflatex / ... / opt / local / bin / is located, where gs can be found.
And yet, when I start the preview at a point that apparently needs latex and gs, I get
Preview-DviPS finished at Thu Dec 22 11:25:46 DviPS sentinel: Searching for program: No such file or directory, gs
which means that latex can be found correctly, but not gs.
I'm not sure if the exec-path configuration is needed, maybe PATH is enough, but I set it as a debugging measure.
Why can't emacs find gs even if the directory is in the PATH and exec paths?
emacs dot-emacs
Calaf Dec 22 '11 at 16:35 2011-12-22 16:35
source share