To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of the MediaWiki package and have latex, dvips, gs (ghostscript), and convert (ImageMagick) installed and available in the PATH.
Please see Manual:Enable TeX, Manual:Math and the math/README in the MediaWiki source code.