On 4/5/23 18:29, Chintan Patel wrote:
> Hi Libguestfs team,
> 
> I'm trying to build guestfs on Ubuntu 22.04, but getting below error.
> #17 8.021 checking for OCaml findlib package augeas... not found
> #17 8.024 configure: error: the OCaml module 'augeas' is required
> 
> By guestfs-building doc I need to get the package
> from https://people.redhat.com/~rjones/augeas/
> <https://people.redhat.com/~rjones/augeas/>. But there is not
> instructions on how and where to place the package .tar file? I
> downloaded the .tar and untar it to /usr/local/ but that does not help. 
> 
> Can anyone please help on how to resolve this issue?

(1) Rich announced the new external dependency on "ocaml-augeas" in
<20230121115301.GR7636@redhat.com">http://mid.mail-archive.com/20230121115301.GR7636@redhat.com>.
According to that message, Debian will have to package ocaml-augeas, and
that package will eventually trickle down to ubuntu (probably not an LTS
release though).

((2) I've not tried building ocaml-augeas myself from the upstream
tarball, I just rebuilt the Fedora SRPM on RHEL9, and installed that.
This way I can develop upstream libguestfs on RHEL9. Once we rebase
libguestfs to upstream in RHEL9, we'll inherit the new dependency, and
we are likely going to have to package ocaml-augeas in RHEL9. Not sure.)

(3) Peeking into the 0.6 release tarball now, I don't think just
extracting it suffices. There's a configure script in it, so you need to
build and install it. And once you do, I *think* the libguestfs build
system should find it, via "ocamlfind".

In case you installed ocaml-augeas in a nonstandard path, then you might
have to extend your OCAMLPATH environment variable, namely with the
directory where ocaml-augeas installed its the META file. Do this before
building libguestfs; I *think* it is through OCAMLPATH how "ocamlfind"
locates OCaml modules.

Laszlo
_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://listman.redhat.com/mailman/listinfo/libguestfs

Reply via email to