I try to build batteries snapshot (29 january 2010) on linux ubuntu 9.10 (karmic koala)
ocamlfind ocamldep -package
batteries,batteries.pa_openin.syntax,batteries.pa_where.syntax,batteries.pa_batteries.syntax,batteries.pa_comprehension.
syntax,batteries.pa_type_conv.syntax,batteries.pa_strings.syntax -syntax camlp4o -modules test.ml
ocamlfind: Package `batteries.pa_openin.syntax' not found
tsarev@tsarev:/storage/project/dsd2$ cat OMakefile
USE_OCAMLFIND = true
BYTE_ENABLED = true
NATIVE_ENABLED = false
OCAMLDEPFLAGS += -syntax camlp4o
OCAMLFLAGS += -syntax camlp4o
OCAMLCFLAGS += -g
OCAMLPACKS[] +=
batteries
batteries.pa_openin.syntax
batteries.pa_where.syntax
batteries.pa_batteries.syntax
batteries.pa_comprehension.syntax
batteries.pa_type_conv.syntax
batteries.pa_strings.syntax
OCamlProgram(test, test)
.DEFAULT: test.run
tsarev@tsarev:/storage/project/dsd2$ cat test.ml
let r = Str.regexp "abc";;
let result = BatStr.Str.search r " abc abc 123 abc ";;
let () =
let f (a,b,c) =
Printf.printf "a=%d\n" a;
Printf.printf "b=%d\n" b;
Printf.printf "c=%s\n" c;
in
BatPervasives.foreach result f;;
tsarev@tsarev:/storage/project/dsd2$ omake test
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.01 sec)
- scan . scan-ocaml-test.ml
+ ocamlfind ocamldep -package
batteries,batteries.pa_openin.syntax,batteries.pa_where.syntax,batteries.pa_batteries.syntax,batteries.pa_comprehension.
syntax,batteries.pa_type_conv.syntax,batteries.pa_strings.syntax -syntax camlp4o -modules test.ml
| Shell.ocamldep-postproc()
ocamlfind: Package `batteries.pa_openin.syntax' not found
*** omake: 12/17 targets are up to date
*** omake: failed (0.05 sec, 1/1 scans, 0/0 rules, 0/38 digests)
*** omake: targets were not rebuilt because of errors:
<scanner scan-ocaml-test.ml>
depends on: test.ml
tsarev@tsarev:/storage/project/dsd2$ uname -a
Linux tsarev 2.6.31-18-generic-pae #55-Ubuntu SMP Fri Jan 8 16:13:23 UTC 2010 i686 GNU/Linux
tsarev@tsarev:/storage/project/dsd2$ ocamlc -v
The Objective Caml compiler, version 3.11.1
Standard library directory: /usr/lib/ocaml
tsarev@tsarev:/storage/project/dsd2$ cat /etc/issue
Ubuntu 9.10 \n \l
|