Environment
Distributor ID: | Ubuntu |
---|---|
Description: | Ubuntu 20.04.3 LTS |
Release: | 20.04 |
Codename: | focal |
Suricata (https://www.openinfosecfoundation.org/download/suricata-6.0.4.tar.gz)
Error
The error was that
make install-conf
make[1]: Entering directory '/home/fancypig/Desktop/suricata-6.0.4'
install -d "/usr/local/etc/suricata/"
install -d "/usr/local/var/log/suricata/files"
install -d "/usr/local/var/log/suricata/certs"
install -d "/usr/local/var/run/"
install -m 770 -d "/usr/local/var/run/suricata"
make[1]: Leaving directory '/home/fancypig/Desktop/suricata-6.0.4'
make install-rules
make[1]: Entering directory '/home/fancypig/Desktop/suricata-6.0.4'
error: rules not installed as suricata-update not available
make[1]: *** [Makefile:932: install-rules] Error 1
make[1]: Leaving directory '/home/fancypig/Desktop/suricata-6.0.4'
make: *** [Makefile:913: install-full] Error 2
The whole process
Install the dependant package
I added the libnss3-dev
、 libnspr4-dev
、 libnspr4-dev
、 rustc cargo
modules besides the offical guide
sudo apt-get -y install libpcre3 libpcre3-dbg libpcre3-dev \
build-essential autoconf automake libtool libpcap-dev libnet1-dev \
libyaml-0-2 libyaml-dev zlib1g zlib1g-dev libcap-ng-dev libcap-ng0 \
make libmagic-dev libjansson-dev libjansson4 libnss3-dev libnspr4-dev libnspr4-dev rustc cargo pkg-config
Download the Software and make install
wget https://www.openinfosecfoundation.org/download/suricata-6.0.4.tar.gz
tar xzvf suricata-6.0.4.tar.gz
cd suricata-6.0.4
./configure && make && make install-full
And then the problem popped out.
make install-conf
make[1]: Entering directory '/home/fancypig/Desktop/suricata-6.0.4'
install -d "/usr/local/etc/suricata/"
install -d "/usr/local/var/log/suricata/files"
install -d "/usr/local/var/log/suricata/certs"
install -d "/usr/local/var/run/"
install -m 770 -d "/usr/local/var/run/suricata"
make[1]: Leaving directory '/home/fancypig/Desktop/suricata-6.0.4'
make install-rules
make[1]: Entering directory '/home/fancypig/Desktop/suricata-6.0.4'
error: rules not installed as suricata-update not avai :grinning:lable
make[1]: *** [Makefile:932: install-rules] Error 1
make[1]: Leaving directory '/home/fancypig/Desktop/suricata-6.0.4'
make: *** [Makefile:913: install-full] Error 2
I’ve read this article Make Installation fails - #11 by Sylfrena
And I tried the way however it didn’t work.
(cd suricata-update &&
curl -L \
https://github.com/OISF/suricata-update/archive/master.tar.gz | \
tar zxvf - --strip-components=1)
So, how can I solve this problem besides uploading the rules mannually?
(I was suffering from the OCD,just kidding )
If you can help solve this problem, it’ ll be highly appreciated.