Today I did it, for the very first time: Did not build a package. Just ran "make install". Twice! ... ocamlfind install \ -ldconf ignore -destdir /usr/lib64/ocaml \ guestfs \ META *.so *.a *.cma *.cmi ./*.mli *.cmx *.cmxa ocamlfind: Package guestfs is already installed - (file /usr/lib64/ocaml/guestfs/META already exists) Makefile:2053: recipe for target 'install-data-hook' failed make[3]: *** [install-data-hook] Error 2 I wonder if that is failing just for my version of ocamlfind or if this is a common failure. How do you guys handle that situation? Olaf
Richard W.M. Jones
2014-Oct-20 08:59 UTC
Re: [Libguestfs] make install of ocaml libs fails
On Thu, Oct 16, 2014 at 11:09:08AM +0200, Olaf Hering wrote:> > Today I did it, for the very first time: > Did not build a package. Just ran "make install". Twice! > > ... > ocamlfind install \ > -ldconf ignore -destdir /usr/lib64/ocaml \ > guestfs \ > META *.so *.a *.cma *.cmi ./*.mli *.cmx *.cmxa > ocamlfind: Package guestfs is already installed > - (file /usr/lib64/ocaml/guestfs/META already exists) > Makefile:2053: recipe for target 'install-data-hook' failed > make[3]: *** [install-data-hook] Error 2 > > I wonder if that is failing just for my version of ocamlfind or if this > is a common failure. How do you guys handle that situation?I can understand why this happens: ocamlfind install will see that /usr/lib64/ocaml/guestfs already contains the installed package, and refuse to install it on top. We never run 'make install', except in the RPM %install (where we use DESTDIR). If I'm building locally, I run libguestfs using the './run' script. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
On Mon, Oct 20, Richard W.M. Jones wrote:> I can understand why this happens: ocamlfind install will see that > /usr/lib64/ocaml/guestfs already contains the installed package, and > refuse to install it on top.One day I will try to understand what the ocaml folks think when they do installations... Olaf