<div dir="ltr">Seems the issue is mis-interpretation of a deprecated constraint. I'm using Jane Street's opam repository [1], which contains constraints like:<div><br></div><div><div>available: [ ocaml-version >= "4.03.0" ]</div><div><br></div><div>After replacing this with a normal constraint in the `depends` field, it worked fine. Is there a tool to convert old opam files?</div><div><br></div><div>[1] <a href="https://github.com/janestreet/opam-repository">https://github.com/janestreet/opam-repository</a></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 7, 2016 at 8:04 AM, Ashish Agarwal <span dir="ltr"><<a href="mailto:agarwal1975@gmail.com" target="_blank">agarwal1975@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm getting this:</div><div><br></div><div>$ opam install ppx_sexp_conv.114.10+84</div><div>[ERROR] ppx_sexp_conv.114.10+84 has unmet availability conditions: ocaml-version >= "4.03.0"</div><div><br></div><div>So opam thinks my ocaml version is < 4.03.0, but I'm in a 4.03.0 switch. I've certainly run "eval `opam config env`". I created a new switch with 4.03.0 to try it from scratch, but get the same issue.</div><div><br></div><div>Sanity checks:</div><div><br></div><div><div>$ ocaml -version</div><div>The OCaml toplevel, version 4.03.0</div></div><div><br></div><div><div>$ opam info ocaml | grep all-installed-versions</div><div>all-installed-versions 4.03.0 [4.03.0]  4.04.0 [4.04.0]<br></div></div><div><br></div><div>Incidentally, I'm confused about the output of `opam info ocaml`. I have 6 switches on this computer. How come only 2 are listed above?</div><div><br></div><div><div>$ opam --version</div><div>2.0~alpha5</div></div><div><br></div></div>
</blockquote></div><br></div>