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

  1. http://www.forkosh.dreamhost.com/source_mathtex.html#install

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

www.example.com/cgi-bin/mathtex.cgi?x^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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>