sngrep icon indicating copy to clipboard operation
sngrep copied to clipboard

Problem on AlmaLinux 10

Open keenonkites opened this issue 4 weeks ago • 4 comments

I haven't found any binary that would run on AlmaLinux 10.1.

And unfortunately the compilation fails, complaining about missing libcap. But libpcap is installed.

Errormsg: configure: error: You need to have libpcap installed to compile sngrep.

libcap:

dnf info libpcap
Letzte Prüfung auf abgelaufene Metadaten: vor 0:15:27 am Do 11 Dez 2025 14:46:53.
Installierte Pakete
Name         : libpcap
Epoch        : 14
Version      : 1.10.4
Release      : 7.el10
Architektur  : x86_64
Größe        : 402 k
Quelle       : libpcap-1.10.4-7.el10.src.rpm
Paketquelle  : @System
Aus Paketque : baseos
Zusammenfass : A system-independent interface for user-level packet capture
URL          : https://www.tcpdump.org/
Lizenz       : ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
Beschreibung : Libpcap provides a portable framework for low-level network
             : monitoring.  Libpcap can provide network statistics collection,
             : security monitoring and network debugging.  Since almost every system
             : vendor provides a different interface for packet capture, the libpcap
             : authors created this system-independent API to ease in porting and to
             : alleviate the need for several system-dependent packet capture modules
             : in each application.
             : 
             : Install libpcap if you need to do low-level network traffic monitoring
             : on your network.

is there any change to get that running on almalinux 10 ? Either by having a running binary or by compiling it on our own ?

Thanks and regards Patrik

keenonkites avatar Dec 11 '25 14:12 keenonkites

Hi,

I have never used AlmaLinux before, but it may require additional development packages. You may need to install packages such as libpcap-devel, ncurses-devel, and others in order to compile from source.

Alternatively, you can try the statically linked binaries available at https://packages.irontec.com/binaries/ . They may work by simply downloading them and granting execution permissions.

Regards,

Kaian avatar Dec 12 '25 07:12 Kaian

Hi,

thanks for the feedback.

I'm out of town actually but testing as soon as I'back at the systems.

Absolutely possible that I missed the devel packages.

BTW: static one did work but throw an error about a non existent terminal... not sure anymore about the correct wording but it was something similat to 'terminal xterm-color is missing'... or xterm-color256... not sure anymore I can recheck that also when back.

Cheers Patrik

keenonkites avatar Dec 12 '25 08:12 keenonkites

Hi!

For the static binaries error, try setting your TERM environment variable to xterm and try again, or add it as prefix to each run..

TERM=xterm sngrep

It may work :)

Kaian avatar Dec 12 '25 09:12 Kaian

thanks... I'll give you a shout when I have tested it. cheers Patrik

keenonkites avatar Dec 12 '25 09:12 keenonkites

Coming back to this issue after checking:

  • compilation works now, libpcap-devel was missing (ncurses-devel was already installed)
  • using static binary: using "TERM=xterm ./sngrep-static-i386-linux-gnu-latest" helped

I think I will go down the route to compile it for my boxes and distribute the executable.

From my side you can close this issue, thanks for the help. Cheers Patrik

keenonkites avatar Dec 19 '25 13:12 keenonkites