Enabling TeX on MediaWiki

What I Did
The second time I set up TeX on MediaWiki (on earthtab):
 * (imagemagick and uploads were already enabled)
 * apt-get install mediawiki-math ocaml-core gcc
 * set $wgUseTeX in LocalSettings.php

mediawiki-math and ocaml-core pulled in a lot of stuff, more than I remember the first time. Maybe I'm just not remembering. And I wonder if build-essential would have been better than gcc.

Resources

 * http://www.mediawiki.org/wiki/Manual:Enable_TeX
 * http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_GNU/Linux#TeX_Support