And now I want to enable the TeX in MediaWiki.
Following the manual "Enable TeX":http://www.mediawiki.org/wiki/Texvc
I've install all of the requied software, including TeX Live 2008
But I can't make texvc:
under the folder: /wiki/math/, I run 'make', it got the error:
Code: Select all
[root@yzoi math]# make
ocamlopt -c render.ml
File "render.ml", line 13, characters 37-48:
Error: Unbound value Unix.getpid
make: *** [render.cmx] Error 2
[root@yzoi math]#
Code: Select all
Failed to parse (Missing texvc executable);
please see math/README to configure.)
xaero regards
my platform:
linux centos 5.2
php 5
apach 2
mysql 5
mediawiki 1.15
line 10~24 in render.ml:
Code: Select all
10 exception ExternalCommandFailure of string
11
12 let render tmppath finalpath outtex md5 =
13 let tmpprefix0 = (string_of_int (Unix.getpid ()))^"_"^md5 in
14 let tmpprefix = (tmppath^"/"^tmpprefix0) in
15 let unlink_all () =
16 begin
17 (* Commenting this block out will aid in debugging *)
18 Sys.remove (tmpprefix ^ ".dvi");
19 Sys.remove (tmpprefix ^ ".aux");
20 Sys.remove (tmpprefix ^ ".log");
21 Sys.remove (tmpprefix ^ ".tex");
22 if Sys.file_exists (tmpprefix ^ ".ps")
23 then Sys.remove (tmpprefix ^ ".ps");
24 end in