[Libguestfs] make install of ocaml libs fails

Richard W.M. Jones rjones at redhat.com
Mon Oct 20 08:59:31 UTC 2014


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




More information about the Libguestfs mailing list