PDA

View Full Version : minetex


rshadarack
11-02-2006, 11:17 PM
http://www.forkosh.com/mimetexmanual.html#build

I am trying to install mimetex (link above) to my hosting server. My host is 3essentials.com, the lowest plan ($4/month). However, I'm having issues.

First off, I don't quite understand cgi, either programming or how any steps to get from code to executable (is .cgi and executable?) work.

My host is based on windows. However, windows compilation spits out an exe, not a cgi, as the build line indicates:

gcc -DAA -DWINDOWS mimetex.c gifsave.c -lm -o mimetex.exe

So instead, I tried building on linux:

cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi

Which produced a cgi, no problems. I then uploaded this to my cgi-bin director and when I go to the address (as specified) to test it out:

http://www.mathaftercalculus.com/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

However, this displays:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

So I'm at a loss. Should I be compiling in a Windows enviornment since my server is windows? If so, how do I get a cgi file? If not, then what am I doing wrong?