Problem
I got a "Latex error" when try to use view comamnd in Sage 5.2.
I've already installed (a lot of, I'm not familar with TeX) texlive, and I can compile tex code manually.
Reason:
dvipng missing.
Sage use dvipng to ensure(maybe other purpose) the generated dvi file -- output of latex -- is ok.
hint: use func?? to see source code of a particular function, then debug the source.
(my)Solution:
just install dvipng
sudo apt-get install dvipng