install errors for libguestfs-1.19.60
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?
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
... also 1.19.61 has just been released, with working Lua support. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
On Fri, Nov 23, 2012 at 07:51:50PM +0100, Olaf Hering wrote:
On Mon, Nov 19, Richard W.M. Jones wrote:
... also 1.19.61 has just been released, with working Lua support.
lua 5.1.4 has LUA_GLOBALSINDEX in lua.h, but lua 5.2.0 does not. As a result, commit 8f80f9fdae13a320da978dffa2c9d94e7b68a810 causes a build error.
According to: http://stackoverflow.com/questions/11093189/lua-updating-from-5-1-lua-global... it looks as if using lua_getglobal is the replacement. lua 5.1 also has this in the header file: #define lua_getglobal(L,s) lua_getfield(L, LUA_GLOBALSINDEX, (s)) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
participants (3)
-
Olaf Hering -
Richard W.M. Jones -
Skippy VonDrake