Installing mathtex.cgi

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
# mkdir mathtex
# cd mathtex
# unzip ../
# 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^2+y^2

It will give you the gif image showing equation by latex syntax.

12 thoughts on “Installing mathtex.cgi

Leave a Reply

Your email address will not be published. Required fields are marked *