I downloaded, compiled, installed and tested mimetex.cgi without any problems.
But when I follow the instructions for using it with Moodle and FreeBSD, it just doesn't want to work.
I've checked that /usr/local/www/moodledata/filter/tex/ is writeable.
Below's the output from texdebug.php program.
Does anybody know what I might have missed?
Cheers
---
Ascii dump of bitmap image... ......*...........................*.................................*...
... etc...
The shell command
"/usr/local/www/html/moodle/filter/tex/mimetex.freebsd" -e "/usr/local/www/moodledata/filter/tex/74c2b66b2d2501b77fad711fd1febcf0.gif" '\Large f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt'
returned status = 0
File size of mimetex executable /usr/local/www/html/moodle/filter/tex/mimetex.freebsd is 314512
The md5 checksum of the first 16384 bytes is b708c65f45b58c0ae601d48633d03777
Image not found!
FreeBSD and mimetex problem
Number of replies: 4Re: FreeBSD and mimetex problem
It looks like your mimetex.freebsd is not recognizing its arguments. The ascii dump is what mimetex produces if there are no arguments. Where did you obtain your source from? Was it from http://www.forkosh.com/mimetex.zip? Did you obtain the very latest source from there? Can you get any binary output by manually typing a command line to mimetex.freebsd in a shell terminal?
PS. My guess is that you downloaded the source from ctan archives or a similar place. I get similar behavior when I compile from those sources. The problem is that the "-e file.gif" argument is only recognized by the latest versions of mimetex, which John Forkosh added to work smoothly with Moodle.
PS. My guess is that you downloaded the source from ctan archives or a similar place. I get similar behavior when I compile from those sources. The problem is that the "-e file.gif" argument is only recognized by the latest versions of mimetex, which John Forkosh added to work smoothly with Moodle.
Re: FreeBSD and mimetex problem
Yes, you're right 
I googled for mimetex (since I use FreeBSD) and wasn't aware of how crucial the version was.
Now I'll try to use it in a forum.
Thanks!
I googled for mimetex (since I use FreeBSD) and wasn't aware of how crucial the version was.
Now I'll try to use it in a forum.
Thanks!
Re: FreeBSD and mimetex problem
Once you get mimetex working on your site, could you email me a copy of your FreeBSD binary, so I could add it to the collection http://moodle.org/download/mimetex? It would be preferable if you send me a statically linked binary (gcc -static ......).
Re: FreeBSD and mimetex problem
For those of us who are running freeBSD 5.x
You need libc.so.4 wich can be installed from the ports system using misc/compat4x port.
(backwards compatable with a freeBSD 4 system).
Don't forget to use the mimetex binary from freeBSD.
You need libc.so.4 wich can be installed from the ports system using misc/compat4x port.
(backwards compatable with a freeBSD 4 system).
Don't forget to use the mimetex binary from freeBSD.