Red Hat Bugzilla – Bug 1276364
hivex: fails to compile without libxml2
Last modified: 2015-10-29 11:51:20 EDT
Filling this under component libguestfs, concerns hivex, but cannot find that in the list.
Description of problem:
README of hivex says libxml2 is optional:
These dependencies are needed for the tools:
- Readline library (optional, to add command-line editing to hivexsh).
- libxml2 (optional, for hivexml).
But configure script fails without it.
Steps to Reproduce:
1. on a system without libxml2: extract hivex-1.3.12.tar.gz, run: ./configure
checking for LIBXML2... no
configure: error: Package requirements (libxml-2.0) were not met:
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Should work without it, and only skip building hivexml.
Fixed by this commit: