0

I tried to compile, this error message appears.

ERROR: AUCTeX cannot find a working TeX distribution. Make sure you have one and that TeX binaries are in PATH environment variable

I have installed texlive 2016 manually and installed emacs by package. and added texlive to .bashrc. so directory of texlive shown in emacs shell by typing echo $PATH. My OS is ubuntu 16.04

  • Not sure this will work, but try setting the PATH in .profile rather than in .bashrc. – giordano Mar 29 '17 at 12:52
  • See if emacs knows the correct path: evaluate (getenv "PATH"). If you are starting emacs from a desktop environment, it will not know it if you just added it to the path in .bashrc. Adding it to .profile per the previous comment might work. If that does not work, start an xterm running bash (which will source .bashrc) and start emacs from the command line: that should work. You can then worry about how to tell your desktop environment to DTRT. – NickD Mar 29 '17 at 15:06
  • @Nick can you make than a answer - I couldn't find a good duplicate on this site. – Andrew Swann Apr 23 '17 at 11:24
1

[Comment promoted to an answer at the request of Andrew Swann.]

See if emacs knows the correct path: evaluate (getenv "PATH"). If you are starting emacs from a desktop environment, it will not know it if you just added it to the path in .bashrc. Adding it to .profile per the previous comment might work. If that does not work, start an xterm running bash (which will source .bashrc) and start emacs from the command line: that should work. You can then worry about how to tell your desktop environment to DTRT.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.