I installed TeX Live 2011 from source in my Ubuntu. The AUCTeX module was also compiled and installed instead of pulling from Ubuntu's repository. However, when I opened a LaTeX file with Emacs, and compiled, it complained
Running `LaTeX' on `jun13' with ``pdflatex -interaction=nonstopmode "\input" jun13.tex''
/bin/sh: pdflatex: not found
LaTeX exited abnormally with code 127 at Sat Oct 15 00:40:58
But PDFLaTeX was already in the PATH. I tried this file with TeXmaker, and it was successful. Could anyone please give me a hint what was going on? Thanks.