On Mon, May 04, 2015 at 03:29:50PM +0800, fu lirong wrote: > hi all: > I am trying to use libguestfs to manage my vm disk , I want to use > guestfs-lib the C library on ubuntu 12.04. so I download > libguestfs-1.28.1 and try to install it .
Ubuntu 12.04 is a bit old to run recent versions of libguestfs. Is it possible to use 14.04 or ideally 15.04 instead? I'm afraid with 12.04 you'll end up having a lot more problems than just the one below. > what I did is : ./autogen.sh > ./configure > make > this time some errors occurs : > > File "output_libvirt.ml", line 53, characters 4-13: > Error: Unbound value List.mapi > make[2]: *** [output_libvirt.cmx] Error 2 > make[2]: Leaving directory `/usr/Libvmi/libguestfs-1.28.1/v2v' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/Libvmi/libguestfs-1.28.1' > make: *** [all] 错误 2 > > I still can't fix it after searching so please help me ! This bug was fixed by the following commit: commit 47d909808aa8cd285f46cab5ea08c7971f8f2f85 Author: Richard W.M. Jones <[email protected]> Date: Thu Dec 18 08:30:18 2014 +0000 v2v: -o libvirt: Replace List.mapi with mapi. Don't depend on OCaml >= 4.00. https://bugs.gentoo.org/show_bug.cgi?id=532698 Thanks: Fabian Ohler which was included in the 1.28 stable branch in >= 1.28.5. However even if you use a later version of libguestfs, I'm afraid you're still going to have a lot of problems with the old version of Ubuntu. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org _______________________________________________ Libguestfs mailing list [email protected] https://www.redhat.com/mailman/listinfo/libguestfs
