On Mon, Nov 19, 2012 at 10:58:36AM -0500, Skippy VonDrake wrote:
I've been using libguestfs-1.18.9 but decided to
"upgrade" to 1.19.60.
Using Ubuntu 12.04 with the older version installed via source.
So I went through the same process with the new version of guestfs sources
and got the following errors on 'make install':
make[2]: Nothing to be done for `install-exec-am'.
make install-data-hook
make[3]: Entering directory `/home/skippy/libguestfs/libguestfs-1.19.60/ocaml'
mkdir -p /usr/lib/ocaml
mkdir -p /usr/lib/ocaml/stublibs
ocamlfind install \
-ldconf ignore -destdir /usr/lib/ocaml \
guestfs \
META *.so *.a *.cma *.cmx *.cmxa *.cmi ./*.mli
ocamlfind: Package guestfs is already installed
- (file /usr/lib/ocaml/guestfs/META already exists)
make[3]: *** [install-data-hook] Error 2
make[3]: Leaving directory `/home/skippy/libguestfs/libguestfs-1.19.60/ocaml'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/home/skippy/libguestfs/libguestfs-1.19.60/ocaml'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/skippy/libguestfs/libguestfs-1.19.60/ocaml'
make: *** [install-recursive] Error 1
Was I supposed to remove the older version first? And if so - how?
This seems to be a problem with ocamlfind -- it cannot overwrite an
existing installation. I think is probably a *bug* in ocamlfind, but
you should be able to work around it by doing:
rm -rf /usr/lib/ocaml/guestfs
By the way, there is generally no reason to install libguestfs using
the 'make install' rule. I never do it. The only time 'make install'
gets used by me is when building a new rpm/deb package.
You can run all the programs out of the build directory using the
'./run' script. The README file explains how.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw