I work on Mac OS X 10.5.8. I am trying to learn emacs. I am very new to it and today tried to enter shell commands from within emacs. I entered pdflatex filename. H
It's possible that the Emacs shell is working in a different environment from the one you have at the terminal command line. Compare the output of env when run inside the Emacs shell and when run in the terminal. Pay particular attention to the values of PATH.