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”

    1. I have been using hostmonster for four years, and I am satisfied so far. If you do googling, you may find low priced and high quality service provider as well. Good luck.

      – Bread

Leave a Reply

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