[opam-devel] opam installs package but ocamlfind fails
Thomas Gazagnaire
thomas at ocamlpro.com
Sun Apr 7 20:15:54 BST 2013
> Okay, so then something wrong happened because I'm on a different switch than what is in this file. If I can reproduce the error, I'll submit a bug report.
The "right" switch is the one stored in ~/.opam/config (which should be the same as the one in the file)
But if you OPAMSWITCH set <FOO>, `opam switch show` and all `opam install` commands will consider the switch to be FOO.
Thomas
>
> On Sun, Apr 7, 2013 at 3:10 PM, Thomas Gazagnaire <thomas at ocamlpro.com> wrote:
> > 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