emily
emily copied to clipboard
"sudo make install" broken on Debian
On my system (Debian wheezy), after 'make' succeeds, 'sudo make install' fails like so:
~/testmake/emily$ sudo make install
install -d /usr/local/bin
install -d /usr/local/share/man/man1
ocamlbuild -no-links -use-ocamlfind src/main.native
make: ocamlbuild: Command not found
make: *** [_build/src/main.native] Error 127
removing the dependency 'all' from the 'install:' target (line 49) causes it to work perfectly.
Where is ocamlbuild
installed? Is sudo
set up to sanitize your PATH/the environment? It looks like ocamlbuild
isn't available to your root user.