# Mac vs Ubuntu LaTeX error [duplicate]

I'm getting a very strange error.

I have a LaTeX document that I compile with a Makefile (below), when I compile it on my Ubuntu machine everything is fine, but when I compile it on my mac the first page of my pdf displays an error, the second page is the title page and the rest compiled just fine.

The error on the first page I get is:

Latex error: missing document see the latex manual or latex
companion for explanation.
You're in trouble here. Try typing 'return' to proceed.


Any ideas what is going on?

My Makefile executes latex; bibtex; latex; latex; dvips; ps2pdf;

-

## marked as duplicate by Marco Daniel, Werner, Kurt, Stefan Kottwitz♦Apr 25 '13 at 20:03

Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Marco Daniel Apr 25 '13 at 18:40
Ok to answer my own question. Although this may be redundant because the description here answers it. The culprit was \usepackage{relsize} which is not supported by some .cls files. Moreover, packages that use relsize will also be affected.