From 1018207aec9897a81754a9c989e4c1fbb920ca8e Mon Sep 17 00:00:00 2001 From: Elmi108 Date: Tue, 4 Nov 2025 17:04:37 +0000 Subject: [PATCH 1/2] docs: add troubleshooting steps for naabu (libpcap-dev required) --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index db0644d..634b4ab 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,41 @@ DEBUG: -v, -verbose show verbose output -nc, -no-color disable output content coloring (ANSI escape codes) -disable-changelog, -dc disable release changelog in output + + +### Troubleshooting: `naabu` build fails with `pcap.h: No such file or directory` + +When `pdtm` installs **naabu** via `go install` (source build), libpcap development headers are required. + +**Fix by distro:** +- **Debian/Ubuntu/Kali** + ```bash + sudo apt update + sudo apt install -y libpcap-dev build-essential + + +**Fix by distro:** +- **Debian/Ubuntu/Kali** + ```bash + sudo apt update + sudo apt install -y libpcap-dev build-essential + +Fedora/RHEL + +sudo dnf install -y libpcap-devel @development-tools + +Arch + +sudo pacman -S --needed libpcap base-devel + +Optional: run naabu without sudo + +sudo setcap cap_net_raw,cap_net_admin=eip "$(which naabu)" + + + + + ``` ## Running pdtm From a6d1969a73e079381184807a5a45a51848289b41 Mon Sep 17 00:00:00 2001 From: Elmi108 Date: Sun, 23 Nov 2025 15:51:59 +0000 Subject: [PATCH 2/2] docs: move naabu troubleshooting under Installation and fix formatting --- README.md | 50 +++++++++++++++++++++----------------------------- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 634b4ab..8412590 100644 --- a/README.md +++ b/README.md @@ -92,40 +92,32 @@ DEBUG: -nc, -no-color disable output content coloring (ANSI escape codes) -disable-changelog, -dc disable release changelog in output - -### Troubleshooting: `naabu` build fails with `pcap.h: No such file or directory` - -When `pdtm` installs **naabu** via `go install` (source build), libpcap development headers are required. - -**Fix by distro:** -- **Debian/Ubuntu/Kali** - ```bash - sudo apt update - sudo apt install -y libpcap-dev build-essential - - -**Fix by distro:** -- **Debian/Ubuntu/Kali** - ```bash - sudo apt update - sudo apt install -y libpcap-dev build-essential - -Fedora/RHEL - +#### Troubleshooting `naabu` source builds (pcap.h error) +
When `pdtm` installs **naabu** via `go install` (source build), **libpcap +development headers** are required. +If they’re missing, the build will fail with: +
```bash +fatal error: pcap.h: No such file or directory +``` +
**Install prerequisites by distro:** +
- **Debian / Ubuntu / Kali** +```bash +sudo apt update +sudo apt install -y libpcap-dev build-essential +``` +
- **Fedora / RHEL** +```bash sudo dnf install -y libpcap-devel @development-tools - -Arch - +``` +
- **Arch Linux** +```bash sudo pacman -S --needed libpcap base-devel - -Optional: run naabu without sudo - +``` +
**Optional:** Allow `naabu` to run without sudo +```bash sudo setcap cap_net_raw,cap_net_admin=eip "$(which naabu)" - - - ``` ## Running pdtm