Replies: 1 comment
-
Hi, Perhaps let me distill this down and refine it a bit. How do I tell dune about the location of libraries, e.g., in /usr/local/lib/csexp in this case? Thanks, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I attempted to build dune-configurator following #8508, and that errored with a message that library csexp could not be found. I grabbed the csexp source code and used dune to build and install it. When I again tried to build dune-configurator, I still got the message that csexp could not be found. My question is where (in what directory) should csexp be installed so that dune is able find it?
This is with ocaml 4.14.1, dune 3.13.1, and csexp 1.5.2. Ocaml and dune are installed into the /usr/local path (ocamlc and dune are in /usr/local/bin). Here are my steps starting from building csexp.
dune build -p csexp --display=verbose
This seemed to work (output below). Then install it:
sudo dune install csexp
Nope. The error message says that either --prefix or --mandir needs to be set.
sudo dune install csexp --prefix=/usr/local --display=verbose
The verbose output (also below) shows that the library is installed into /usr/local/lib/csexp. I then try to build dune-configurator again, and I still get the error about library csexp not being found. My understanding from here:
https://dune.readthedocs.io/en/latest/usage.html#finding-external-libraries
is that dune should be looking in /usr/local/lib. I expect I'm misunderstanding something, so any guidance would be appreciated.
Thanks,
Norm
Results from 1.
Results from 3:
Beta Was this translation helpful? Give feedback.
All reactions