<https://github.com/Chocrates> Apologies if this is the wrong list, I initially opened a github ticket before reading that github isn't the right spot. Trying to compile libguestfs and in the process need to get hivex compiled and installed. Hivex compiles and installs fine (I think), but ocamlfind doesn't seem to pick up hivex after the install causing the autogen.sh script in libguestfs to fail. Installation steps: ./bootstrap ./autogen.sh make sudo make install No issues with any of the above commands that I can see, and I noticed that autogen returned "OCaml bindings ........ yes" so I would expect ocamlfind to be able to pick it up. Ocaml is pretty much a black box to me so not sure how to debug this from here. Thanks, Chris
On Sun, Aug 06, 2017 at 06:17:04PM -0500, Chris McIntosh wrote:> <https://github.com/Chocrates> > Apologies if this is the wrong list, I initially opened a github ticket > before reading that github isn't the right spot. > > Trying to compile libguestfs and in the process need to get hivex compiled > and installed. > Hivex compiles and installs fine (I think), but ocamlfind doesn't seem to > pick up hivex after the install causing the autogen.sh script in libguestfs > to fail. > > Installation steps: > ./bootstrap > ./autogen.sh > make > sudo make install > > No issues with any of the above commands that I can see, and I noticed that > autogen returned "OCaml bindings ........ yes" so I would expect ocamlfind > to be able to pick it up. Ocaml is pretty much a black box to me so not > sure how to debug this from here.What distro? Are the OCaml bindings for hivex actually installed? What does: ocamlfind query hivex print? What does the config.log file say? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
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 *.cmxaOh 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
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@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 >