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.
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?