[Bug 259888] devel/ocaml-opam ; opam install error
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 259888] devel/ocaml-opam ; opam install error"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Nov 2021 10:15:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259888 --- Comment #1 from Hannes Mehnert <hannes@mehnert.org> --- Dear Alain, first of all: this is not an issue with devel/ocaml-opam - which compiles fine, but the output (opam - the OCaml package manager) fails to install some packages due to the OCaml port (lang/ocaml) being very old (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250408 for an attempt to update it). This is a known issue in OCaml 4.08 (e.g. https://github.com/ocaml/ocaml/issues/9540). Since `opam` installed successfully, you can create a "switch" with a more up-to-date OCaml compiler: $ opam switch create 4.13.1 [... bootstraps and compiles an OCaml compiler, takes some time (10 minutes) ...] $ eval $(opam env) [ now your current shell has some environment variables that will use that switch - run the eval $(opem env) in each shell or via ~/.profile to get this newer OCaml compiler ] $ opam install async yojson core_extended core_bench cohttp-async async_graphics cryptokit menhir base core [ should work now ] The root cause is: lang/ocaml is very old and should be updated. In the meantime, opam offers you to install another (newer) OCaml compiler locally. -- You are receiving this mail because: You are the assignee for the bug.