I am trying to install Snort on Ubuntu 21.04 from source files as per instructions on the Snort website. I have followed videos on Youtube and got past a number of issues, but I am stuck at:
sp_rpc_check.c:32:10: fatal error: rpc/rpc.h: No such file or directory
32 | #include <rpc/rpc.h>
| ^~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:478: sp_rpc_check.o] Error 1
make[4]: Leaving directory '/usr/snort-2.9.18/src/detection-plugins'
make[3]: *** [Makefile:428: all] Error 2
make[3]: Leaving directory '/usr/snort-2.9.18/src/detection-plugins'
make[2]: *** [Makefile:547: all-recursive] Error 1
make[2]: Leaving directory '/usr/snort-2.9.18/src'
make[1]: *** [Makefile:505: all-recursive] Error 1
make[1]: Leaving directory '/usr/snort-2.9.18'
make: *** [Makefile:370: all] Error 2
Have tried
sudo apt install libntirpc-dev as per another thread here on AskUbuntu.
I am relatively newbie. have done sudo apt update and sudo apt upgrade.
From the snort website, https://www.snort.org/#get-started, have done all of:
wget https://www.snort.org/downloads/snort/daq-2.0.7.tar.gz
wget https://www.snort.org/downloads/snort/snort-2.9.18.tar.gz
tar xvzf daq-2.0.7.tar.gz
cd daq-2.0.7
./configure && make && sudo make install
tar xvzf snort-2.9.18.tar.gz
cd snort-2.9.18
but when running :
./configure --enable-sourcefire && make && sudo make install
get the error described above
I have also sorted libpcap, libpcre and dnet issues out. So it is just this rpc issue now. Thanks
Initializing Output Plugins! pcap DAQ configured to passive. Acquiring network traffic from "enp6s0". ERROR: Can't start DAQ (-1) - socket: Operation not permitted! Fatal Error, Quitting..
– omboidal Aug 30 '21 at 21:59