A weird error when installing a package using opam on Mac

Hi all,

I found that when an OCaml package that is supposed to build an executable file is installed using OPAM on a Mac, the executable file simply disappeared & could not be found from OPAM’s bin directory.

I specifically observed this behavior when trying ledit. This made running ledit on terminal raise an error because it could not be found.

Did anyone observe the same issue?

I have not experienced this…eg when I install the dream-html package then the dreamwork executable is correctly available: dream-html/dreamwork/dune at dffaa416143c8d83542af5ba78f0fadfc8cb98dd · yawaramin/dream-html · GitHub

I just tried installing ledit on my mac in the default opam switch and it worked as expected. Is it possible that you ran opam install ledit while a different opam switch was selected (e.g. in a project’s local switch). Do you experience this problem with other executable packages other than ledit or is it specific to ledit?

Hmm, it was because the opam file of ledit did not have the instruction for copying its binary to the "%{bin}%" dir. TY all!