[Libguestfs] Ocamlfind can't find hivex

Chris McIntosh rougechampion2002 at gmail.com
Mon Aug 7 18:04:00 UTC 2017


Thanks Rich,

Setting the OCAMLPATH and redoing the configure, make and make install
seemed to work.

I installed opam after I couldn't get hivex to install initially, was
hoping that hivex was a package managed by opam I guess.

Chris

On 7 August 2017 at 08:54, Richard W.M. Jones <rjones at redhat.com> wrote:

> On Mon, Aug 07, 2017 at 08:10:55AM -0500, Chris McIntosh wrote:
> > Hey Thanks Rich.
> >
> > > What distro?
> > Solus
> >
> > > Are the OCaml bindings for hivex actually installed?
> > I don't think so at this point, though make install runs this command:
> >
> > ocamlfind install \
> >  -ldconf ignore -destdir /home/chris/.opam/4.05.0/lib/ocaml \
> >  hivex \
> >  META *.so *.a *.cma *.cmi ./*.mli *.cmx *.cmxa
>
> Oh I see you're using opam to install locally.
>
> I think you'll need to set up an environment variable before running
> ./configure.  I'm not much of an opam user myself, but it's probably:
>
>   export OCAMLPATH=/home/chris/.opam/4.05.0/lib/ocaml
>
> or maybe:
>
>   export OCAMLPATH=/home/chris/.opam/4.05.0/lib/ocaml:/usr/lib/ocaml
>
> or similar.
>
> You might also want to check /etc/ocamlfind.conf and the opam
> documentation.
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170807/46a53b93/attachment.htm>


More information about the Libguestfs mailing list