[Newbie] How do I install dune?


#1

As I understand it, dune is the build tool for OCaml projects.

But when I try

$ opam install dune
[ERROR] No package named dune found.

This works.

$ opam install jbuilder
[NOTE] Package jbuilder is already installed (current version is 1.0+beta20).

for context,

$ ocaml --version
The OCaml toplevel, version 4.06.0

help? what am I missing? I thought dune was released recently, and is the recommended way forward.


#2

Dune 1.0 has not been released yet, for now it’s still called jbuilder.


#3

Ok thanks.

My bad. I must have got confused.

This page https://github.com/ocaml/dune suggested

opam install dune

as the recommended way to install dune


#4

Yes, we just updated the README in preparation for the 1.0.0 release which should be Real Soon Now™.

Sorry about the confusing intermediate solution.