xml2-config(1)
π xml2-config β bestie's guide to the lil script that knows where libxml2 lives π
okay so before we even start: this is the xml2-config manual page, section 1, and it's been sitting here at version 1.2.0 this whole time. we're folding that in up top like a hair clip, and the whole thing is signed off at the bottom, mwah. π
β¨ NAME β¨
xml2-config β a script to get information about the installed version of libxml2 π¦
πΈ SYNOPSIS πΈ
xml2-config [--prefix[=DIR]] [--libs] [--cflags] [--version] [--help]
π DESCRIPTION π
okay so real talk: 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. π«Ά
that's it. that's the whole job. it's giving "helpful little oracle that tells your compiler where the libxml2 stuff is at." no cap. β¨
π OPTIONS π
xml2-config accepts the following options:
--versionβ prints the currently installed version of libxml2 on the standard output. π¦--libsβ prints the linker flags that are necessary to link a libxml2 program. π« add--dynamicafter--libsto print only shared library linking information.--cflagsβ prints 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--cflagsand--libsoptions.
β οΈ bestie listen, this one matters: this option must be specified before any--libsor--cflagsoptions. order is everything here, it's lowkey the main character rule of this page. π
π AUTHOR π
this manual page was written by Fredrik Hallenberg <hallon@lysator.liu.se>, for the Debian GNU/linux system (but may be used by others). π
Version 3 April 2022 β and that's the whole page, bestie!! π«Ά you just read the xml2-config manpage at version 1.2.0, from that 3 April 2022 date stamp, and honestly? iconic. go compile something. periodt. πβ¨π
π¦ where this page comes from
- alpine 3.22: libxml2-doc 2.13.9-r1 Β· MIT
- alpine 3.23: libxml2-doc 2.13.9-r1 Β· MIT
- alpine 3.24: libxml2-doc 2.13.9-r2 Β· MIT
- arch rolling: libxml2 2.15.4-1 Β· MIT
- centos-stream 10: libxml2-devel 2.12.5-15.el10 Β· MIT AND ISC-Veillard AND W3C
- fedora 43: libxml2-devel 2.12.10-5.fc43 Β· MIT AND ISC-Veillard AND W3C
- fedora 43: libxml2-devel 2.12.10-5.fc43 Β· MIT AND ISC-Veillard AND W3C
- fedora 44: libxml2-devel 2.12.10-6.fc44 Β· MIT AND ISC-Veillard AND W3C
- fedora 44: libxml2-devel 2.12.10-6.fc44 Β· MIT AND ISC-Veillard AND W3C
- nixos 26.05: libxml2 2.13.9
- nixpkgs unstable: libxml2 2.13.9
- opensuse-leap 16.0: libxml2-devel 2.13.8-160000.5.1 Β· MIT
- opensuse-leap 16.0: libxml2-devel 2.13.8-160000.5.1 Β· MIT
- opensuse-leap 16.0: libxml2-devel 2.13.8-160000.5.1 Β· MIT
- opensuse-leap 16.0: libxml2-devel 2.13.8-160000.5.1 Β· MIT
- ubuntu questing: libxml2-dev 2.14.5+dfsg-0.2
- ubuntu questing: libxml2-dev 2.14.5+dfsg-0.2ubuntu0.2
- ubuntu resolute: libxml2-dev 2.15.2+dfsg-0.1 Β· MIT-1
- ubuntu resolute: libxml2-dev 2.15.2+dfsg-0.1ubuntu0.3 Β· MIT-1
- ubuntu stonking: libxml2-dev 2.15.4+dfsg-1 Β· MIT-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms