[opam-devel] opam installs package but ocamlfind fails
Ashish Agarwal
agarwal1975 at gmail.com
Sun Apr 7 20:48:53 BST 2013
https://github.com/OCamlPro/opam/issues/582
On Sun, Apr 7, 2013 at 3:15 PM, Thomas Gazagnaire <thomas at ocamlpro.com>wrote:
> > 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).
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20130407/d1949972/attachment-0001.html>
More information about the opam-devel
mailing list