# In 7.0.9 missing libpcre2-8-devel

**URL:** <https://forum.suricata.io/t/in-7-0-9-missing-libpcre2-8-devel/5501>\
**Category:** Uncategorized\
**Created:** [March 19, 2025, 8:45pm UTC](https://forum.suricata.io/t/in-7-0-9-missing-libpcre2-8-devel/5501 "2025-03-19T20:45:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimoe](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jimoe](https://forum.suricata.io/u/jimoe)\
**Post date:** [March 19, 2025, 8:45pm UTC](https://forum.suricata.io/t/in-7-0-9-missing-libpcre2-8-devel/5501/1 "2025-03-19T20:45:34Z")

</div>

openSUSE tumbleweed 20250313  
Linux 6.13.6-1-default x86\_64  
I unpacked Suricata 7.0.9 and ran `configure` as usual.

```auto
$ ./configure --enable-nfqueue
  ... bunch o' success ...
checking for pcre2_compile_8 in -lpcre2-8... no
   ERROR! pcre2 library not found, go get it
   from www.pcre.org. Or from packages:
   Debian/Ubuntu: apt install libpcre2-dev
   Fedora: dnf install pcre2-devel
   CentOS/RHEL: yum install pcre2-devel

```

Libraries `libpcre2-8-0`, `libpcre2-16-0`, `libpcre2-32-0`, are installed.  
Searching for `pcre2-devel` in opensuse’s repos failed; none are offered for any of the pcre2 modules.  
I tried `dnf` and `yum`. They both core dumped.  
I do not recall needing a “devel” package for Suricata. Is this a new requirement? Have I misread the error message?

I have the pcre2 source package. How do I extract the devel file(s)?

---

<div class="post-metadata">

**Author:** ![Jeff\_Lucovsky](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jeff_lucovsky/32/11_2.png) [@Jeff\_Lucovsky](https://forum.suricata.io/u/Jeff_Lucovsky)\
**Post date:** [March 23, 2025, 2:20pm UTC](https://forum.suricata.io/t/in-7-0-9-missing-libpcre2-8-devel/5501/2 "2025-03-23T14:20:31Z")

</div>

Since `libpcre2-32-0` is already installed, try adding  
`--with-libpcre2-libraries=/path/to/libdir` and `--with-libpcre2-includes=/path/to/include-dir` to the `configure` line.

Perhaps they’re installed in nonstandard locations?

If this doesn’t help, please reply and post the snippet from `config.log` where the pcre2 components are probed (hint: search for pcre2\_compile in config.log)

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [March 23, 2025, 5:09pm UTC](https://forum.suricata.io/t/in-7-0-9-missing-libpcre2-8-devel/5501/3 "2025-03-23T17:09:01Z")

</div>

On a fresh Docker image of `opensuse/tumbleweed:lastet` which seems to be `20250321` based on `/etc/os-release`, a `zypper install pcre2-devel` finds and installs the package just fine. Maybe you’re missing a repo?

---

<div class="post-metadata">

**Author:** ![jimoe](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jimoe](https://forum.suricata.io/u/jimoe)\
**Post date:** [March 23, 2025, 6:33pm UTC](https://forum.suricata.io/t/in-7-0-9-missing-libpcre2-8-devel/5501/4 "2025-03-23T18:33:31Z")

</div>

> [@ish](#):
>
> `zypper install pcre2-devel`

Huh! That worked today. I suppose the repo had been updated to include pcre2-devel since my last visit.

Alas! Now that I have all of the needed libraries, Suricata does not configure for NFQUEUE. I tried both `./configure` and `./configure --enable-nfqueue`. Both yield the result below.  
[config.log](https://forum.suricata.io/uploads/short-url/2aLBqe6V4Vqu290GPSn9tP2PHkX.log) (194.8 KB)

```auto
Suricata Configuration:
  AF_PACKET support: yes
  AF_XDP support: no
  DPDK support: no
  eBPF support: no
  XDP support: no
  PF_RING support: no
  NFQueue support: no
  NFLOG support: no
  IPFW support: no
  Netmap support: no 
  DAG enabled: no
  Napatech enabled: no

```

---

<div class="post-metadata">

**Author:** ![jimoe](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jimoe](https://forum.suricata.io/u/jimoe)\
**Post date:** [March 23, 2025, 6:43pm UTC](https://forum.suricata.io/t/in-7-0-9-missing-libpcre2-8-devel/5501/5 "2025-03-23T18:43:06Z")

</div>

I ran `make` anyway.

```auto
$ src/suricata --build-info
This is Suricata version 7.0.9 RELEASE
Features: PCAP_SET_BUFF AF_PACKET HAVE_PACKET_FANOUT LIBCAP_NG HAVE_HTP_URI_NORMALIZE_HOOK PCRE_JIT HAVE_NSS HTTP2_DECOMPRESSION HAVE_JA3 HAVE_JA4 HAVE_LIBJANSSON TLS TLS_C11 MAGIC RUST POPCNT64 
SIMD support: SSE_4_2 SSE_4_1 SSE_3 SSE_2 
Atomic intrinsics: 1 2 4 8 16 byte(s)
64-bits, Little-endian architecture
GCC version 14.2.1 20250220 [revision 9ffecde121af883b60bbe60d00425036bc873048], C version 201112
compiled with _FORTIFY_SOURCE=0
L1 cache line size (CLS)=64
thread local storage method: _Thread_local
compiled with LibHTP v0.5.50, linked against LibHTP v0.5.50

Suricata Configuration:
  AF_PACKET support: yes
  AF_XDP support: no
  DPDK support: no
  eBPF support: no
  XDP support: no
  PF_RING support: no
  NFQueue support: no
  NFLOG support: no
  IPFW support: no
  Netmap support: no 
  DAG enabled: no
  Napatech enabled: no
  WinDivert enabled: no

  Unix socket enabled: yes
  Detection enabled: yes

  Libmagic support: yes
  libjansson support: yes
  hiredis support: no
  hiredis async with libevent: no
  PCRE jit: yes
  LUA support: no
  libluajit: no
  GeoIP2 support: no
  JA3 support: yes
  JA4 support: yes
  Non-bundled htp: no
  Hyperscan support: no
  Libnet support: no
  liblz4 support: yes
  Landlock support: yes

  Rust support: yes
  Rust strict mode: no
  Rust compiler path: /usr/bin/rustc
  Rust compiler version: rustc 1.85.0 (4d91de4e4 2025-02-17) (built from a source tarball)
  Cargo path: /usr/bin/cargo
  Cargo version: cargo 1.85.0 (d73d2caf9 2024-12-31)

  Python support: yes
  Python path: /usr/bin/python3
  Install suricatactl: yes
  Install suricatasc: yes
  Install suricata-update: yes

  Profiling enabled: no
  Profiling locks enabled: no
  Profiling rules enabled: no

  Plugin support (experimental): yes
  DPDK Bond PMD: no

Development settings:
  Coccinelle / spatch: no
  Unit tests enabled: no
  Debug output enabled: no
  Debug validation enabled: no
  Fuzz targets enabled: no

Generic build parameters:
  Installation prefix: /usr/local
  Configuration directory: /usr/local/etc/suricata/
  Log directory: /usr/local/var/log/suricata/

  --prefix /usr/local
  --sysconfdir /usr/local/etc
  --localstatedir /usr/local/var
  --datarootdir /usr/local/share

  Host: x86_64-pc-linux-gnu
  Compiler: gcc (exec name) / g++ (real)
  GCC Protect enabled: no
  GCC march native enabled: yes
  GCC Profile enabled: no
  Position Independent Executable enabled: no
  CFLAGS -g -O2 -fPIC -std=c11 -march=native -I${srcdir}/../rust/gen -I${srcdir}/../rust/dist
  PCAP_CFLAGS -I/usr/include
  SECCFLAGS

```

---

<div class="post-metadata">

**Author:** ![Jeff\_Lucovsky](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jeff_lucovsky/32/11_2.png) [@Jeff\_Lucovsky](https://forum.suricata.io/u/Jeff_Lucovsky)\
**Post date:** [March 24, 2025, 1:20pm UTC](https://forum.suricata.io/t/in-7-0-9-missing-libpcre2-8-devel/5501/6 "2025-03-24T13:20:46Z")

</div>

The library support for netfilter (nfqueue) couldn’t be located – these lines are from `config.log` that you posted

```auto
configure:20311: checking for libnetfilter_queue
configure:20318: $PKG_CONFIG --exists --print-errors "libnetfilter_queue"
Package libnfnetlink was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnfnetlink.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libnfnetlink', required by 'libnetfilter_queue', not found
configure:20321: $? = 1
configure:20335: $PKG_CONFIG --exists --print-errors "libnetfilter_queue"
Package libnfnetlink was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnfnetlink.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libnfnetlink', required by 'libnetfilter_queue', not found
configure:20338: $? = 1
configure:20352: result: no
Package 'libnfnetlink', required by 'libnetfilter_queue', not found

```

---

<div class="post-metadata">

**Author:** ![jimoe](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jimoe](https://forum.suricata.io/u/jimoe)\
**Post date:** [March 24, 2025, 5:55pm UTC](https://forum.suricata.io/t/in-7-0-9-missing-libpcre2-8-devel/5501/7 "2025-03-24T17:55:48Z")

</div>

I had been searching for “nfqueue” and so missed “netfilter.” I installed `libnfnetlink` and `libnetfilter_queue`. I have achieved the coveted confirmation for enabling NFQueue:  
` NFQueue support: yes`  
Thank you.
