Since I don't have root access on a workstation, I installed oUnit locally, into ~/ounit. I can load the module in the interpreter if I run
ocaml -I ~/ounit/oUnit
Now I'd like to run the test, so I try to compile it:
ocamlfind ocamlc -o test -package oUnit -I ~/ounit/oUnit -linkpkg -g foo.ml test.ml
Unfortunately, ocamlfind doesn't detect the oUnit package
ocamlfind: Package `oUnit' not found
What am I doing wrong?
The solution is to use
OCAMLPATH