PCRE2-CONFIG(1)
π NAME π
ok so like, <pink>pcre2-config</pink> β it's the program that returns the PCRE2 configuration, bestie. that's it, that's the vibe. it tells you how your PCRE2 is set up so you don't have to guess π§
(also hi, this is from the <purple>General Commands Manual</purple> section, section 1, slay π)
β¨ SYNOPSIS β¨
pcre2-config [--prefix] [--exec-prefix] [--version]
[--libs8] [--libs16] [--libs32] [--libs-posix]
[--cflags] [--cflags-posix]
like, you just run it with one (or more) of these bad boys and it prints stuff at you. no cap π
π¦ DESCRIPTION π¦
pcre2-config returns the configuration of the installed PCRE2 libraries, plus the options you need to compile a program that uses them. it's giving "personal assistant for your build system" honestly.
okay so here's the tea β β some of these options apply only to the 8-bit, 16-bit, or 32-bit libraries, respectively. and they're literally not available for libraries that haven't been built. so if you hit an unavailable option, the "usage" information gets output instead. that's your sign to check what you actually have installed, bestie π«Ά
πΈ OPTIONS πΈ
--prefixβ writes the directory prefix used in the PCRE2 installation for architecture-independent files to the standard output.<mint>/usr</mint>on many systems,<mint>/usr/local</mint>on some systems. iykyk π--exec-prefixβ writes the directory prefix used in the PCRE2 installation for architecture-dependent files to the standard output. normally the same as--prefix, lowkey twins π―--versionβ writes the version number of the installed PCRE2 libraries to the standard output. cute little number, go off β¨--libs8β writes to the standard output the command line options required to link with the 8-bit PCRE2 library. that's<hotpink>-lpcre2-8</hotpink>on many systems π--libs16β writes to the standard output the command line options required to link with the 16-bit PCRE2 library.<hotpink>-lpcre2-16</hotpink>on many systems π--libs32β writes to the standard output the command line options required to link with the 32-bit PCRE2 library.<hotpink>-lpcre2-32</hotpink>on many systems π₯--libs-posixβ writes to the standard output the command line options required to link with PCRE2's POSIX API wrapper library.<hotpink>-lpcre2-posix -lpcre2-8</hotpink>on many systems β yeah, two of them, it's a whole duo π--cflagsβ writes to the standard output the command line options required to compile files that use PCRE2. this may include some-Ioptions, but is blank on many systems. sometimes it's just quiet like that π--cflags-posixβ writes to the standard output the command line options required to compile files that use PCRE2's POSIX API wrapper library. this may include some-Ioptions, but is blank on many systems. same energy, different wrapper π
π SEE ALSO π
pcre2(3)β go read the main character's page, fr fr π
π AUTHOR π
this manual page was originally written by <purple>Mark Baker</purple> for the Debian GNU/Linux system. it has been subsequently revised as a generic PCRE2 man page. iconic lineage honestly, we stan π«‘π
β REVISION β
last updated: <yellow>22 February 2025</yellow> β recent enough, we love a fresh page β¨
okay that's the whole thing, bestie, you're officially a pcre2-config expert now, no notes π
PCRE2 10.47 β 22 February 2025 β from the PCRE2-CONFIG(1) page, mwah π
π¦ where this page comes from
- fedora 43: pcre2-devel 10.47-1.fc43 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 43: pcre2-devel 10.47-1.fc43 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 44: pcre2-devel 10.47-1.fc44.1 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 44: pcre2-devel 10.47-1.fc44.1 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms