Mailing List Archive

Make math error
While trying to install Phase 3 using mediawiki-20030829 I had the
following error while making math:

[colorado@tribal math]$ ls
CVS html.ml mathml.mli tex.mli texvc_cgi.ml
Makefile html.mli parser.mly texutil.ml texvc_test.ml
README lexer.mll render.ml texutil.mli util.ml
TODO mathml.ml render_info.mli texvc.ml

[colorado@tribal math]$ make
ocamlopt -c util.ml
ocamlc -c render_info.mli
ocamlc -c tex.mli
ocamlyacc parser.mly
ocamlc -c parser.mli
ocamlopt -c parser.ml
ocamlc -c html.mli
ocamlopt -c html.ml
ocamlc -c mathml.mli
ocamlopt -c mathml.ml
ocamlc -c texutil.mli
ocamlopt -c texutil.ml
ocamlopt -c render.ml
ocamllex lexer.mll
187 states, 3221 transitions, table size 14006 bytes
ocamlopt -c lexer.ml
ocamlopt -c texvc.ml
ocamlopt -o texvc unix.cmxa util.cmx parser.cmx html.cmx mathml.cmx
texutil.cmx render.cmx lexer.cmx texvc.cmx
ocamlopt -c texvc_test.ml
ocamlopt -o texvc_test util.cmx parser.cmx html.cmx mathml.cmx texutil.cmx
lexer.cmx texvc_test.cmx
ocamlopt -o texvc_tex util.cmx parser.cmx html.cmx mathml.cmx texutil.cmx
lexer.cmx texvc_tex.cmx
Cannot find file texvc_tex.cmx
make: *** [texvc_tex] Error 2
rm parser.ml lexer.ml
[colorado@tribal math]$

[colorado@tribal math]$ ls
CVS lexer.mll parser.o texutil.ml texvc_test.cmx
Makefile lexer.o render.cmi texutil.mli texvc_test.ml
README mathml.cmi render.cmx texutil.o texvc_test.o
TODO mathml.cmx render.ml texvc util.cmi
html.cmi mathml.ml render.o texvc.cmi util.cmx
html.cmx mathml.mli render_info.cmi texvc.cmx util.ml
html.ml mathml.o render_info.mli texvc.ml util.o
html.mli parser.cmi tex.cmi texvc.o
html.o parser.cmx tex.mli texvc_cgi.ml
lexer.cmi parser.mli texutil.cmi texvc_test
lexer.cmx parser.mly texutil.cmx texvc_test.cmi

[colorado@tribal phase3]$ php install.php
Directory "/public/html/colorado/dev" exists.
Directory "/public/html/colorado/dev/upload" created.
Directory "/public/html/colorado/dev/style" created.
Directory "/public/html/colorado/dev/upload/tmp" created.
Copying files...
Directory "/public/html/colorado/dev/math" created.
Directory "/public/html/colorado/dev/upload/math" created.

Warning: copy(./math/texvc_tex): failed to open stream: No such file or
directory in
/public/html/colorado/dev/mediawiki-20030829/phase3/install.php on line 157
Failed to copy file "texvc_tex" to "/public/html/colorado/dev/math"

[colorado@tribal math]$ make
ocamlopt -o texvc_tex util.cmx parser.cmx html.cmx mathml.cmx texutil.cmx
lexer.cmx texvc_tex.cmx
Cannot find file texvc_tex.cmx
make: *** [texvc_tex] Error 2

Any ideas?

Fred
Re: Make math error [ In reply to ]
On Wednesday, Oct 15, 2003, at 05:22 US/Pacific, Fred Bauder wrote:
> While trying to install Phase 3 using mediawiki-20030829 I had the
> following error while making math:
[snip]
> ocamlopt -o texvc_tex util.cmx parser.cmx html.cmx mathml.cmx
> texutil.cmx
> lexer.cmx texvc_tex.cmx
> Cannot find file texvc_tex.cmx
> make: *** [texvc_tex] Error 2

Hmm, the obvious thing to ask is which version of ocaml and on what OS
you're working. I've had no trouble compiling it with ocaml 3.06 on Red
Hat Linux 7.2/8.0/9.0 (installed from source), FreeBSD 5.1 (ocaml from
ports; use 'gmake' to build texvc) or MacOS X (via fink, used regular
make).

-- brion vibber (brion @ pobox.com)