[opam-devel] opam installs package but ocamlfind fails
Thomas Gazagnaire
thomas at ocamlpro.com
Sun Apr 7 20:10:08 BST 2013
> I don't see how this is possible. My variables.sh file is:
>
> $ cat variables.sh
> CAML_LD_LIBRARY_PATH=/Users/ashish/.opam/4.00.1/lib/stublibs; export CAML_LD_LIBRARY_PATH;
> OCAML_TOPLEVEL_PATH=/Users/ashish/.opam/4.00.1/lib/toplevel; export OCAML_TOPLEVEL_PATH;
> MANPATH=/Users/ashish/.opam/4.00.1/man:$MANPATH; export MANPATH;
> PATH=/Users/ashish/.opam/4.00.1/bin:$PATH; export PATH;
>
> All path variables have a specific switch hardcoded in. When I do `opam switch foo`, these paths will be wrong.
This file is under the control of OPAM. Which means that when you do `opam switch foo` it will rewrite its contents to use the new compiler switch (you can try, switch and look at the file contents again).
More information about the opam-devel
mailing list