Bug #3235
closedMakefile:936: recipe for target 'install-rules' failed
Description
Upon sudo make install-full I encounter the following make errors:
make install-conf make[1]: Entering directory '/home/supaplex/Projects/suricata-master/oisf' 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/supaplex/Projects/suricata-master/oisf' make install-rules make[1]: Entering directory '/home/supaplex/Projects/suricata-master/oisf' error: rules not installed as suricata-update not available Makefile:936: recipe for target 'install-rules' failed make[1]: *** [install-rules] Error 1 make[1]: Leaving directory '/home/supaplex/Projects/suricata-master/oisf' Makefile:916: recipe for target 'install-full' failed make: *** [install-full] Error 2
Ubuntu 18.04.3 LTS, https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Ubuntu_Installation_from_GIT
Updated by Jason Ish about 5 years ago
This is what will happen when you build from Git without bundling Suricata-Update, and I now see that its not very user friendly at all. A better message, without the exit 0 would probably be better, and less alarming.
As this is the very last step of the install, you can be assured that Suricata was installed, just not the rules. But we'll make this cleaner for those building from git.
Updated by Victor Julien about 4 years ago
- Target version changed from 70 to TBD
Updated by stephane potier almost 4 years ago
pi@raspberrypi:~/suricata $ git clone https://github.com/OISF/suricata-update.git
fails since suricata-update folder already exists in suricata folder.
fatal: le chemin de destination 'suricata-update' existe déjà et n'est pas un répertoire vide.
As reported by Scott :
pi@raspberrypi:~/suricata $ sudo make install-full
fails with this error 2 if we install suricata-update in another folder
make install-rules
make[1] : on entre dans le répertoire « /home/pi/suricata »
error: rules not installed as suricata-update not available
make[1]: *** [Makefile:928: install-rules] Error 1
make[1] : on quitte le répertoire « /home/pi/suricata »
make: *** [Makefile:909: install-full] Error 2
Updated by Juliana Fajardini Reichow over 3 years ago
A workaround for that error is to manually bundle suricata-update, after cloning suricata from github and before running ./configure.
In order to do so, from inside suricata directory, perform the following:
$ cd suricata-update $ curl -L https://github.com/OISF/suricata-update/archive/master.tar.gz | tar zxvf - --strip-components=1
After this, one should be able to run ./configure
, make
make install
without that error.
Updated by Jason Ish about 1 year ago
- Status changed from New to Closed
- Target version changed from TBD to 7.0.0-beta1
This was fixed earlier on in the 7.0 development cycle with commit abb3cc85d5e54fbc14e4c2783ddbc619b1e29443.
As it mostly affects builders from git, I will not back port this to 6.0.x.