<div dir="ltr">I was compiling from opam head. Using opam 1.1.1 makes the problem go away.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 28, 2014 at 8:17 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">On most systems, I get:<br><br>$ opam config list | grep base-unix<br>base-unix:installed                      true<br>

base-unix:enable                         enable<br><br><br>But on Debian, I'm getting:<br>
<br><div>$ opam config list | grep base-unix<br>(* no output *)</div><div><br></div><div><br></div><div>However, it seems the Unix library is installed:</div><br>$ ocaml<br><br>        OCaml version 4.01.0<br><br># #load "unix.cma";;<br>


# Unix.getenv;;<br>- : string -> string = <fun><div><br></div><div><br></div><div>But opam seems not to have it in its list:</div><br>$ opam list<br>No packages found.<div><br></div><div><br></div><div>Also, this happens:</div>


<div><br></div>$ opam switch<br>4.01.0  C 4.01.0       Official 4.01.0 release<div><br></div>$ opam switch 4.01.0<br>[WARNING] Some of the compiler base packages are not installed. You should run:<br><br>    $ opam install base-threads base-bigarray base-unix<div>


<br></div><div>Odd, but okay, I try it:</div><div><br></div><div>$ opam install base-threads base-bigarray base-unix<br></div>The following actions will be performed:<br> - install   base-threads.base<br> - install   base-bigarray.base<br>


 - install   base-unix.base<br><br>=== 3 to install ===<br><br>=-=-=-=-=-=-=-=-=-=-=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=<br><br>=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Installing packages -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>


Installing base-bigarray.base.<br>Installing base-threads.base.<br>Installing base-unix.base.<div><br></div><div>Now opam does list the packages:</div>$ opam list<br>Installed packages for 4.01.0:<br>base-bigarray  base  Bigarray library distributed with the OCaml compiler<br>


base-threads   base  Threads library distributed with the OCaml compiler<br>base-unix      base  Unix library distributed with the OCaml compiler<div><br></div>But the config variables still don't get fixed:<br><br>$ opam config list | grep base-unix<br>


(* no output *)<div><br></div><div>This of course leads to other problems, such as lwt.unix doesn't get installed.</div><div><br></div></div>
</blockquote></div><br></div>