Hi, I get this error duing a "make install": llvm[3]: Installing Debug /usr/local/lib/ocaml/libllvm.a install: /usr/local/lib/ocaml/libllvm.a: Permission denied make[3]: *** [install-a] Error 71 make[2]: *** [install] Error 1 make[1]: *** [ocaml/.makeinstall] Error 2 make: *** [install] Error 1 -bw
On Oct 2, 2007, at 00:17, Bill Wendling wrote:> I get this error duing a "make install": > > llvm[3]: Installing Debug /usr/local/lib/ocaml/libllvm.a > install: /usr/local/lib/ocaml/libllvm.a: Permission denied > make[3]: *** [install-a] Error 71 > make[2]: *** [install] Error 1 > make[1]: *** [ocaml/.makeinstall] Error 2 > make: *** [install] Error 1Fair enough. The problem is that the bindings are installed in the ocaml stdlib, regardless of --prefix. At the very least, there should be a configure switch for this. Perhaps better, the default should go into the stdlib only if the stdlib is under --prefix; otherwise using $libdir/ocaml. Alternatively, perhaps they should be installed only with a special make target (Subversion does this). I'll muck around with the configurey goop to see what I can come up with. In the meantime, please use a workaround: sudo make install -or- blank out the OCAMLC := line in Makefile.config.in — Gordon
On 2007-10-02, at 03:19, Gordon Henriksen wrote:> On Oct 2, 2007, at 00:17, Bill Wendling wrote: > >> I get this error duing a "make install": >> >> llvm[3]: Installing Debug /usr/local/lib/ocaml/libllvm.a >> install: /usr/local/lib/ocaml/libllvm.a: Permission denied >> make[3]: *** [install-a] Error 71 >> make[2]: *** [install] Error 1 >> make[1]: *** [ocaml/.makeinstall] Error 2 >> make: *** [install] Error 1 > > Fair enough. The problem is that the bindings are installed in the > ocaml stdlib, regardless of --prefix. At the very least, there should > be a configure switch for this. Perhaps better, the default should go > into the stdlib only if the stdlib is under --prefix; otherwise using > $libdir/ocaml. Alternatively, perhaps they should be installed only > with a special make target (Subversion does this). > > I'll muck around with the configurey goop to see what I can come up > with. In the meantime, please use a workaround: > > sudo make install > -or- > blank out the OCAMLC := line in Makefile.config.inYou can now configure with --disable-bindings rather than editing out OCAMLC. I'll fix the directory logic soon. — Gordon -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071002/da18f37f/attachment.html>
On 2007-10-02, at 00:17, Bill Wendling wrote:> I get this error duing a "make install": > > llvm[3]: Installing Debug /usr/local/lib/ocaml/libllvm.a > install: /usr/local/lib/ocaml/libllvm.a: Permission denied > make[3]: *** [install-a] Error 71 > make[2]: *** [install] Error 1 > make[1]: *** [ocaml/.makeinstall] Error 2 > make: *** [install] Error 1Bill, All done. configure will now install the ocaml bindings under your prefix. (The ocaml stdlib is only used if it is underneath the prefix.) --with-ocaml-libdir can be used to override configure. As previously mentioned, you can also --disable-bindings to turn them off entirely. — Gordon -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071002/cce9a985/attachment.html>
On 10/2/07, Gordon Henriksen <gordonhenriksen at mac.com> wrote:> > > Bill, > > All done. configure will now install the ocaml bindings under your prefix. > (The ocaml stdlib is only used if it is underneath the prefix.) > --with-ocaml-libdir can be used to override configure. > > As previously mentioned, you can also --disable-bindings to turn them off > entirely. >Sounds good. I'll test it tonight. Thanks! -bw