I am trying to install AucTeX 1.86 over an Emacs binary (version 24.0.50) from emacsformacosx.com. On first attempt ./configure
outputs:
configure: error: Cannot find the texmf directory!
Please use --with-texmf-dir=dir to specify where the preview tex files go
configure: error: ./configure failed for preview
I add --with-texmf-dir=/usr/local/texlive/texmf-local
, to which ./configure
replies happily with several congratulations. I compile with make
and sudo make install
without a glitch.
I open a .tex file on Emacs and AucTeX does not load. I issue (load auctex.el nil t t)
C-j in the *scratch* buffer and Emacs outputs:
Debugger entered--Lisp error:(file-error "Cannot open load file" "auctex.el")
Something is up. I figured Emacs could not find the file, so it must have not installed where it was supposed to. I track down most of AucTeX files to /usr/share/emacs/site-lisp
, where Emacs 22.1 lives.
I had two options here: 1. tell Emacs where to find AucTeX (which I don't know how to do); 2. recompile AucTeX with more configuration options (which seemed more straight forward).
I chose to recompile, after deleting all AucTeX files from the previous installation. This time I configure the source, telling it where the Emacs it should use is, with:
./configure -with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs --with-lisp-dir=/Applications/Emacs.app/Contents/Resources/site-lisp --with-texmf-dir=/usr/local/texlive/texmf-local
This time it complains:
`configure: error: Cannot locate lisp directory,`
`use --with-lispdir, --datadir, or possibly --prefix to rectify this`
even though I included the --with-lisp-dir=dir
option. If I take it out, it still complains about not being able to find the lisp directory. AucTeX does not seem to like the Emacs.app in the Applications folder.
My question is, how do I get this to work?