xml2-config(1)

xml2-config1

Script to get information about the installed version of libxml2

Usage

xml2-config [--prefix [=DIR]] [--libs] [--cflags] [--version] [--help]

Overview

xml2-config is a tool that is used to determine the compile and linker flags that should be used to compile and link programs that use libxml2.

Options

xml2-config accepts the following options:

--version

Print the currently installed version of libxml2 on the standard output.

--libs

Print the linker flags that are necessary to link a libxml2 program. Add --dynamic after --libs to print only shared library linking information.

--cflags

Print the compiler flags that are necessary to compile a libxml2 program.

--prefix=PREFIX

If specified, use PREFIX instead of the installation prefix that libxml2 was built with when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options.

Releases

13 releases since Debian 3.0 (Woody); the text changed 6 times.

  1. 3.0–3.1
  2. 4.0
  3. 5.0–6.0
  4. 7
  5. 8–10
  6. 11–13
  7. Arch

Author

This manual page was written by Fredrik Hallenberg <[email protected]>, for the Debian GNU/linux system (but may be used by others).

From libxml2 2.15.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.