Manjaro snort ERROR! dnet header not found

On Linux Manjaro, I want to install Snort. I attempted to install Snort using the code below but it is not listed on Pacman.

pamac build snort

I experience this error.

ERROR! dnet header not found, go get it from com/p/libdnet/ or use the --with-dnet-*
options, if you have it installed in an unusual place
make: *** No targets specified and no makefile found. Stop.
==> ERROR: A failure occurred in build().

My system already has libdnet installed. I may need to download Snort from its official website, but I have no idea where to find the libdnet libraries and includes to pass as a parameter to configure.

Hi @privacycoin, and welcome!

To search where package files are locates, use

$ pamac list --files <packageName>

Where <packageName> is the name of the package’s files you’re looking for.

For example:

$ pamac list --files libdnet

From this we can see the librarie(s) are located in:


…as most, if not all other libraries.

Hope this helps!


This whole post smells like an XY Problem to me.

I don’t know how you’re trying to install it, but it seems like kind of manually, while it is in the AUR:

$ pamac search snort
snort                                                                                                                                                                                                                               AUR
A lightweight network IDS /IPS with OpenAppID support.

So you should be able to easily install it with:

pamac build snort

Possibly avoiding all that manual things.

Just to confirm, pamac build snort builds correctly on a clean up to date manjaro gnome VM on the stable branch.

Running on arch might need this parameter: snort --daq-dir /usr/lib/daq/ from this post.
The post also has a solution for the header error.

1 Like