[opam-devel] `opam config list` doesn't show base-unix on Debian

Ashish Agarwal agarwal1975 at gmail.com
Mon Apr 28 16:17:57 BST 2014


I was compiling from opam head. Using opam 1.1.1 makes the problem go away.


On Mon, Apr 28, 2014 at 8:17 AM, Ashish Agarwal <agarwal1975 at gmail.com>wrote:

> On most systems, I get:
>
> $ opam config list | grep base-unix
> base-unix:installed                      true
> base-unix:enable                         enable
>
>
> But on Debian, I'm getting:
>
> $ opam config list | grep base-unix
> (* no output *)
>
>
> However, it seems the Unix library is installed:
>
> $ ocaml
>
>         OCaml version 4.01.0
>
> # #load "unix.cma";;
> # Unix.getenv;;
> - : string -> string = <fun>
>
>
> But opam seems not to have it in its list:
>
> $ opam list
> No packages found.
>
>
> Also, this happens:
>
> $ opam switch
> 4.01.0  C 4.01.0       Official 4.01.0 release
>
> $ opam switch 4.01.0
> [WARNING] Some of the compiler base packages are not installed. You should
> run:
>
>     $ opam install base-threads base-bigarray base-unix
>
> Odd, but okay, I try it:
>
> $ opam install base-threads base-bigarray base-unix
> The following actions will be performed:
>  - install   base-threads.base
>  - install   base-bigarray.base
>  - install   base-unix.base
>
> === 3 to install ===
>
> =-=-=-=-=-=-=-=-=-=-=-=- Synchronizing package archives
> -=-=-=-=-=-=-=-=-=-=-=-=
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-= Installing packages
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Installing base-bigarray.base.
> Installing base-threads.base.
> Installing base-unix.base.
>
> Now opam does list the packages:
> $ opam list
> Installed packages for 4.01.0:
> base-bigarray  base  Bigarray library distributed with the OCaml compiler
> base-threads   base  Threads library distributed with the OCaml compiler
> base-unix      base  Unix library distributed with the OCaml compiler
>
> But the config variables still don't get fixed:
>
> $ opam config list | grep base-unix
> (* no output *)
>
> This of course leads to other problems, such as lwt.unix doesn't get
> installed.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20140428/aff36eeb/attachment-0001.html>


More information about the opam-devel mailing list