Hi,
On Monday 04 May 2015 15:29:50 fu lirong wrote:
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 .
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 !
The problem is the usage of some OCaml API available since OCaml 4.00,
thus not available in OCaml 3.12 which is in the Ubuntu version you are
using.
This has been fixed upstream, with the commit
https://github.com/libguestfs/libguestfs/commit/0c717d86a9ae66162eebe315d...
in the stable-1.28 branch.
You have two option:
a) compile libguestfs 1.28.5 (which includes the above patch) or greater
b) apply yourself the patch to your 1.28.1 sources
Unless you really need libguestfs 1.28.1 and not any later version,
I recommend the solution (a); currently libguestfs 1.28.9 is the latest
stable version.
Thanks,
--
Pino Toscano