In order to make and install mathtex.cgi, latex and dvipng are prerequisite. You need to install latex first and divpng will come along with it.
You can follow the instruction
Following will show how I have done with it for example.
# wget http://www.forkosh.com/mathtex.zip # mkdir mathtex # cd mathtex # unzip ../mathtex.zip # cc mathtex.c –DLATEX=\\"$(which latex)\\" \\ –DDVIPNG=\\"$(which dvipng)\\" –o mathtex.cgi # cp mathtex.cgi /public_html/xxx.../cgi-bin/
For test of mathtex.cgi, in your web browser, you can do it by
It will give you the gif image showing equation by latex syntax.