Cyberithub

Solved: "Snort ERROR! daq_static library not found"

Advertisements

In this article, we will see how to solve snort error daq_static library not found. Recently, I was trying to install Snort from source code on my Ubuntu Linux system but as soon as I ran configure script, after sometime it failed with error daq_static library not found. After looking into the error further, I understood the problem and then decided to write an article about this to share the solution steps so that in case if you are also facing the same error then it will help you as well.

 

Solved: "Snort ERROR! daq_static library not found"

Solved: "Snort ERROR! daq_static library not found"

Also Read: How to Install libdnet package on Ubuntu 20.04 LTS (Focal Fossa)

As I said, while following the installation steps, when I tried running ./configure script then after sometime I noticed ERROR! daq_static library not found on the output as you can see below.

cyberithub@ubuntu:~/snort-2.9.20$ ./configure
...........................................

checking for eth_set in -ldnet... no
checking for eth_set in -ldumbnet... yes
checking for dlsym in -ldl... yes
./configure: line 13016: daq-modules-config: command not found
checking for daq_load_modules in -ldaq_static... no

ERROR! daq_static library not found, go get it from
http://www.snort.org/.

While above error could occur due to multiple reasons but the most obvious one is that it is not able to find daq_load_modules due to missing libdaq-dev package in your system. So to solve the error, you just have to install this package by using sudo apt-get install libdaq-dev command as shown below.

cyberithub@ubuntu:~$ sudo apt-get install libdaq-dev
[sudo] password for cyberithub:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libdaq2
The following NEW packages will be installed:
libdaq-dev libdaq2
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 171 kB of archives.
After this operation, 651 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu focal/universe amd64 libdaq2 amd64 2.0.4-3build2 [65.2 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu focal/universe amd64 libdaq-dev amd64 2.0.4-3build2 [106 kB]
Fetched 171 kB in 2s (97.6 kB/s)
Selecting previously unselected package libdaq2.
(Reading database ... 258496 files and directories currently installed.)
Preparing to unpack .../libdaq2_2.0.4-3build2_amd64.deb ...
Unpacking libdaq2 (2.0.4-3build2) ...
Selecting previously unselected package libdaq-dev.
Preparing to unpack .../libdaq-dev_2.0.4-3build2_amd64.deb ...
Unpacking libdaq-dev (2.0.4-3build2) ...
Setting up libdaq2 (2.0.4-3build2) ...
Setting up libdaq-dev (2.0.4-3build2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...

After installing the package successfully, if you now run ./configure script again then this time you will notice that it is able to find daq_load_modules and proceed as expected. This also confirms that the original error daq_static library not found is resolved now as evident from below output.

cyberithub@ubuntu:~/snort-2.9.20$ ./configure
.........................................
checking for eth_set in -ldnet... no
checking for eth_set in -ldumbnet... yes
checking for dlsym in -ldl... yes
checking for daq_load_modules in -ldaq_static... yes
checking for daq_hup_apply... yes
checking for daq_acquire_with_meta... yes
checking for daq_dp_add_dc... yes
..........................................

Sometimes it is also possible that even after following above steps, you might be facing the same error again. In that case, I would request you to please write me in the comment box so that we can work together to solve this daq_static library not found error.

Leave a Comment