yallop / ocaml-ctypes

Library for binding to C libraries using pure OCaml
MIT License
363 stars 95 forks source link

Error: Library "ctypes" in /usr/local/lib/ocaml/site-lib/ctypes is hidden #687

Open yurivict opened 2 years ago

yurivict commented 2 years ago

I have ocaml-ctypes-0.19.1 installed but the project ocaml-luv-0.5.10 breaks:

File "_build/.dune/default/src/c/dune", line 9, characters 12-18:
9 |  (libraries ctypes luv_c_function_descriptions threads)
                ^^^^^^
Error: Library "ctypes" in /usr/local/lib/ocaml/site-lib/ctypes is hidden
(unsatisfied 'exist_if').
Hint: try:
  dune external-lib-deps --missing --no-config --root . --ignore-promoted-rules --default-target @install --always-show-command-line --promote-install-files --release --only-packages luv -p 
aantron commented 2 years ago

I tried to reproduce this with opam, but the installation works. See https://github.com/aantron/luv/issues/125#issuecomment-924891338. My first guess is that this is caused by Ctypes 0.19.1 packaging in a system package manager. I've asked @yurivict to give the exact commands that can be used to reprodue the error. We probably also need the name and version of the system.