Doesn't build using OPAMBUILDDOC=true: Cannot create directory ‘/usr/local/share/doc’
copy opened this issue · 0 comments
copy commented
This is on opam, 2.0.0~rc:
% opam install printbox
The following actions will be performed:
∗ install printbox 0.1
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[printbox.0.1] downloaded from cache at https://opam.ocaml.org/2.0/cache
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The installation of printbox failed at "make install".
Processing 2/2: [printbox: ocamlfind remove]
#=== ERROR while installing printbox.0.1 ======================================#
# context 2.0.0~rc | linux/x86_64 | ocaml-base-compiler.4.06.1 | https://opam.ocaml.org/2.0#ba33a2cc
# path ~/.opam2/4.06.1/.opam-switch/build/printbox.0.1
# command /usr/bin/make install
# exit-code 2
# env-file ~/.opam2/log/printbox-9719-6cc03f.env
# output-file ~/.opam2/log/printbox-9719-6cc03f.out
### output ###
# [...]
# mkdir: cannot create directory ‘/usr/local/share/doc’: Permission denied
# E: Failure("Command ''mkdir' '/usr/local/share/doc'' terminated with error code 1")
# make: *** [Makefile:19: install] Error 1