-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: "Missing mandir" (dune install) #7814
Comments
Specifying
Additional problem |
Did you configure dune with custom locations before building it? I know it might happen in that case. You can also try to pass |
This works thanks |
i think the error message can be improved in this situation so reope ing the issue. Ideally we should suggest the prefix option before mandor. |
When a user has not set --prefix they will get a confusing error message about mandir. The suggestion here is to also set --mandir leading them down a rabbit hole of specifying a complete install layout. What they probably want to be doing is speciying --prefix so we change the error message here to suggest that instead. fix ocaml#7814 Signed-off-by: Ali Caglayan <alizter@gmail.com>
Just a note: It seems like the problems I had with dune asking for all this directories was due to lacking Opam initialization. Now that the Opam init script is invoked during shell initialization, those problems are solved for me. I wrote also small tip about it in the ocaml forum: https://discuss.ocaml.org/t/tipp-if-opam-gives-you-grief-check-your-init-ba-fi-c-sh-file/12265 |
Yes, that probably explains why we don't see this issue so often in the wild. However I have seen and been confused by this message before and I do not use opam so at least we can improve this. |
When a user has not set --prefix they will get a confusing error message about mandir. The suggestion here is to also set --mandir leading them down a rabbit hole of specifying a complete install layout. What they probably want to be doing is speciying --prefix so we change the error message here to suggest that instead. fix ocaml#7814 Signed-off-by: Ali Caglayan <alizter@gmail.com>
When a user has not set --prefix they will get a confusing error message about mandir. The suggestion here is to also set --mandir leading them down a rabbit hole of specifying a complete install layout. What they probably want to be doing is speciying --prefix so we change the error message here to suggest that instead. fix ocaml#7814 Signed-off-by: Ali Caglayan <alizter@gmail.com>
When a user has not set --prefix they will get a confusing error message about mandir. The suggestion here is to also set --mandir leading them down a rabbit hole of specifying a complete install layout. What they probably want to be doing is speciying --prefix so we change the error message here to suggest that instead. fix ocaml#7814 Signed-off-by: Ali Caglayan <alizter@gmail.com>
When a user has not set --prefix they will get a confusing error message about mandir. The suggestion here is to also set --mandir leading them down a rabbit hole of specifying a complete install layout. What they probably want to be doing is speciying --prefix so we change the error message here to suggest that instead. fix #7814 Signed-off-by: Ali Caglayan <alizter@gmail.com>
Expected Behavior
run
in a project folder in order to install the project and its built artefact in the default locations
Actual Behavior
Specifications
Additional information
My default mandir directory exists, so no need for specifying a folder I think
Here some additional info on mandir:
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
The text was updated successfully, but these errors were encountered: