LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-10-2024, 08:31 AM   #1
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 185

Rep: Reputation: 40
libguestfs compile - OCaml findlib package hivex... not found


Slackware64-current

Struggling to compile libguestfs to manage qemu images.
I compiled all dependencies:
augeas-1.14.1
ocaml-4.14.2
ocamlbuild-0.14.3
ocaml-findlib-1.9.6
supermin-5.3.4
hivex-1.3.23
ocaml-num-1.5
dune-3.15.3
opam-2.1.6

compiling slackbuild script libguestfs at .configure stage returns:

Quote:
--- Checking for OCaml ---
checking for ocamlc... ocamlc
OCaml version is 4.14.2
OCaml library path is /usr/lib64/ocaml
checking for ocamlopt... ocamlopt
checking for ocamlc.opt... ocamlc.opt
checking for ocamlopt.opt... ocamlopt.opt
checking for ocamldep... ocamldep
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for ocamldoc... ocamldoc
checking for ocamlbuild... ocamlbuild
checking for ocamlfind... ocamlfind
checking if OCaml version >= 4.07... yes (4, 14)
checking if OCaml ‘-runtime-variant _pic’ works... yes
checking for OCaml findlib package hivex... not found
configure: error: the OCaml module 'hivex' is required
Quote:
ocamlfind --help
Usage: ocamlfind query [-help | other options] <package_name> ...
or: ocamlfind ocamlc [-help | other options] <file> ...
or: ocamlfind ocamlcp [-help | other options] <file> ...
or: ocamlfind ocamlmklib [-help | other options] <file> ...
or: ocamlfind ocamlmktop [-help | other options] <file> ...
or: ocamlfind ocamlopt [-help | other options] <file> ...
or: ocamlfind ocamloptp [-help | other options] <file> ...
or: ocamlfind ocamldep [-help | other options] <file> ...
or: ocamlfind ocamlbrowser [-help | other options]
or: ocamlfind ocamldoc [-help | other options] <file> ...
or: ocamlfind install [-help | other options] <package_name> <file> ...
or: ocamlfind remove [-help | other options] <package_name>
or: ocamlfind printppx [-help | other options] <package_name> ...
or: ocamlfind printconf [-help] [variable]
or: ocamlfind lint [-help] <file>
or: ocamlfind list
or: ocamlfind pkg/cmd arg ...
Select toolchain with:
ocamlfind -toolchain <t> <command>
Abbreviations:
e.g. ocamlfind opt instead of ocamlfind ocamlopt
Quote:
hivexsh -h
hivexsh: invalid option -- 'h'
hivexsh [-dfwu] [hivefile]
As above ocamlfind and hivex are installed and work.
What could be the problem?
 
Old 06-10-2024, 10:37 AM   #2
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 428

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
The bindings for ocaml in the SlackBuild for hivex is not here.

May be adding above the ./configure line :
export OCAMLPATH=...

Will make the ocaml binding.
 
Old 06-10-2024, 11:30 AM   #3
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 185

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by BrunoLafleur View Post
The bindings for ocaml in the SlackBuild for hivex is not here.

May be adding above the ./configure line :
export OCAMLPATH=...

Will make the ocaml binding.
Thank you, progress.
Now can't find augeas, again findlib is involved:
Quote:
--- Checking for OCaml ---
checking for ocamlc... ocamlc
OCaml version is 4.14.2
OCaml library path is /usr/lib64/ocaml
checking for ocamlopt... ocamlopt
checking for ocamlc.opt... ocamlc.opt
checking for ocamlopt.opt... ocamlopt.opt
checking for ocamldep... ocamldep
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for ocamldoc... ocamldoc
checking for ocamlbuild... ocamlbuild
checking for ocamlfind... ocamlfind
checking if OCaml version >= 4.07... yes (4, 14)
checking if OCaml ‘-runtime-variant _pic’ works... yes
checking for OCaml findlib package hivex... found
checking for Hivex.OPEN_UNSAFE... yes
checking which OCaml runtime we should link the daemon with... asmrun_pic
checking how to link the daemon with -lcamlstr*... camlstr
checking how to link the daemon with -lunix*... unix
checking for OCaml findlib package augeas... not found
configure: error: the OCaml module 'augeas' is required
./libguestfs.SlackBuild FAILED at line 85!
 
Old 06-10-2024, 03:09 PM   #4
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 428

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
There is a ocaml binding for augeas here :
http://download.augeas.net/ocaml/

Referenced here :
https://augeas.net/download.html

So it needs to be added in the SlackBuild of augeas or be an independant package like python3-augeas.
 
Old Yesterday, 10:58 AM   #5
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 185

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by BrunoLafleur View Post
There is a ocaml binding for augeas here :
http://download.augeas.net/ocaml/

Referenced here :
https://augeas.net/download.html

So it needs to be added in the SlackBuild of augeas or be an independant package like python3-augeas.
Thank you, but too complicated. Slackware is missing some dependencies, that I can not successfully install from other source (distribution).
But I was lucky to install libguestfs and guestfs-tools from Archlinux and looks like they are working.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
LXer: Use libguestfs to manage virtual machine disk images LXer Syndicated Linux News 0 09-04-2020 06:24 AM
LXer: Access And Modify Virtual Machine Disk Images With Libguestfs LXer Syndicated Linux News 0 08-01-2020 05:24 AM
LXer: Libguestfs 1.14 offers new tools to help users analyze and fix alignment problems in guests LXer Syndicated Linux News 0 10-27-2011 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration