Startup fails, suricata.exe



You must install Npcap ( Normally, wpcap.dll is in:

  • C:\Windows\System32\Npcap

  • C:\Windows\SysWOW64\Npcap

  • C:\Windows\ System32\

  • C:\WindowsSysWOW64\

You can run as a service:

suricata -c suricata.yaml -i -l ./log -knone -vvv --service-install

great, worked, thx.

Q2, installed to linux;
checking for libnet.h version 1.1.x… no
checking for pcap.h… no
configure: error: pcap.h not found …
[root@mnidev1-deployer suricata-6.0.3]#

nmap installed but where pcap.h path should be added?

What windows OS is that ?
Can you try following the steps here

Does it work like that ?

this is another try in Redhat OS

Any update?

nmpa is installed ok:

make[1]: Leaving directory `/home/cloud-user/nmap/nmap-7.92/nping’

checking for yaml_parser_initialize in -lyaml… yes
checking for pthread_create in -lpthread… yes
checking for pthread_spin_unlock… yes
checking jansson.h usability… yes
checking jansson.h presence… yes
checking for jansson.h… yes
checking for json_dump_callback in -ljansson… yes
checking whether OS_WIN32 is declared… no
checking for libnet.h version 1.1.x… no
checking for pcap.h… no
configure: error: pcap.h not found …
[root@dev1-deployer suricata-6.0.3]#

pcap.h binary exists in nmap folder, but suricata cant find it, why?

Hi Mika,

Try specifying the directories containing the pcap include files and libraries since they are in a non-standard location


./configure --with-libpcap-includes=path-to-pcap-include-files --with-pcap-libraries=path-to-library-files

config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
configure: WARNING: unrecognized options: --with-libpcap-includes, --with-pcap-libraries
[root@mnidev1-deployer libpcap]# ./configure --with-libpcap-includes=/home/cloud-user/nmap/nmap-7.92/libpcap --with-pcap-libraries=/home/cloud-user/nmap/nmap-7.92/libpcap

Do you know what version of Suricata you are working with?

Can you paste the output of ./configure --help?

[root@mnidev1-deployer suricata-6.0.3]# ./configure -help
`configure' configures suricata 6.0.3 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/suricata]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
                          optimize for fast installation [default=yes]
                          do not reject slow dependency extractors
                          speeds up one-time build
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-python         Enable python
  --disable-largefile     omit support for large files
  --enable-gccprotect     Detect and use gcc hardening options
  --enable-gccprofile     Enable gcc profile info i.e -pg flag is set
                          Enable gcc march=native gcc 4.2 and later only
  --enable-unittests      Enable compilation of the unit tests
  --enable-ebpf-build     Enable compilation of ebpf files
  --enable-debug          Enable debug output
                          Enable (debug) validation code output
                          Enable http2 decompression
  --enable-profiling      Enable performance profiling
                          Enable performance profiling for locks
  --enable-ipfw           Enable FreeBSD IPFW support for inline IDP
  --disable-coccinelle    Disable coccinelle QA steps during make check
  --disable-detection     Disable Detection Modules
  --enable-unix-socket    Enable unix socket [default=test]
  --enable-nflog          Enable libnetfilter_log support
  --enable-nfqueue        Enable NFQUEUE support for inline IDP
  --enable-windivert      Enable WinDivert support [default=no]
  --enable-prelude        Enable Prelude support for alerts
  --enable-pfring         Enable Native PF_RING support
  --enable-af-packet      Enable AF_PACKET support [default=yes]
  --enable-netmap         Enable Netmap support
                          Disable suricata-update
                          Enable the use of an already installed version of
  --enable-ebpf           Enable eBPF support
  --enable-dag            Enable DAG capture
  --disable-nspr          Disable libnspr support
  --disable-nss           Disable libnss support
  --enable-libmagic       Enable libmagic support [default=yes]
  --enable-napatech       Enabled Napatech Devices
                          Disable Bypass feature on Napatech cards
  --enable-lua            Enable Lua support
  --enable-luajit         Enable Luajit support
  --enable-geoip          Enable GeoIP2 support
  --enable-pie            Enable compiling as a position independent
  --enable-hiredis        Enable Redis support
  --enable-rust-strict    Rust warnings as errors
  --enable-fuzztargets    Enable fuzz targets

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
  --with-clang=PROGRAM    path to Clang for compiling eBPF code. Use if the main                                     C compiler is not Clang.
  --with-zlib-includes=DIR  zlib include directory
  --with-zlib-libraries=DIR    zlib library directory
  --with-libpcre-includes=DIR  libpcre include directory
  --with-libpcre-libraries=DIR    libpcre library directory
  --with-libhs-includes=DIR  libhs include directory
  --with-libhs-libraries=DIR    libhs library directory
  --with-libyaml-includes=DIR  libyaml include directory
  --with-libyaml-libraries=DIR    libyaml library directory
  --with-libpthread-includes=DIR  libpthread include directory
  --with-libpthread-libraries=DIR    libpthread library directory
  --with-libjansson-includes=DIR  libjansson include directory
  --with-libjansson-libraries=DIR    libjansson library directory
  --with-libnfnetlink-includes=DIR  libnfnetlink include directory
  --with-libnfnetlink-libraries=DIR    libnfnetlink library directory
  --with-libnetfilter_queue-includes=DIR  libnetfilter_queue include directory
  --with-libnetfilter_queue-libraries=DIR    libnetfilter_queue library director                                    y
  --with-libnetfilter_log-includes=DIR  libnetfilter_log include directory
  --with-libnetfilter_log-libraries=DIR    libnetfilter_log library directory
  --with-windivert-include=DIR WinDivert include path
  --with-windivert-libraries=DIR WinDivert library path
                          Prefix where libprelude is installed (optional)
  --with-libnet-includes=DIR     libnet include directory
  --with-libnet-libraries=DIR    libnet library directory
  --with-libpcap-includes=DIR  libpcap include directory
  --with-libpcap-libraries=DIR    libpcap library directory
  --with-libpfring-includes=DIR  libpfring include directory
  --with-libpfring-libraries=DIR    libpfring library directory
  --with-netmap-includes=DIR netmap include directory
  --with-libhtp-includes=DIR  libhtp include directory
  --with-libhtp-libraries=DIR    libhtp library directory
  --with-libcap_ng-includes=DIR  libcap_ng include directory
  --with-libcap_ng-libraries=DIR    libcap_ng library directory
  --with-dag-includes=DIR  dagapi include directory
  --with-dag-libraries=DIR  dagapi library directory
  --with-libnspr-includes=DIR  libnspr include directory
  --with-libnspr-libraries=DIR    libnspr library directory
  --with-libnss-includes=DIR  libnss include directory
  --with-libnss-libraries=DIR    libnss library directory
  --with-libmagic-includes=DIR  libmagic include directory
  --with-libmagic-libraries=DIR    libmagic library directory
  --with-napatech-includes=DIR   napatech include directory
  --with-napatech-libraries=DIR  napatech library directory
  --with-liblua-includes=DIR  liblua include directory
  --with-liblua-libraries=DIR    liblua library directory
  --with-libluajit-includes=DIR  libluajit include directory
  --with-libluajit-libraries=DIR    libluajit library directory
  --with-libmaxminddb-includes=DIR  libmaxminddb include directory
  --with-libmaxminddb-libraries=DIR    libmaxminddb library directory
  --with-libevent-includes=DIR  libevent include directory
  --with-libevent-libraries=DIR    libevent library directory
  --with-libhiredis-includes=DIR  libhiredis include directory
  --with-libhiredis-libraries=DIR    libhiredis library directory

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
              User-defined run-time library search path.
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
              directories to add to pkg-config's search path
              path overriding pkg-config's built-in search path
              C compiler flags for LIBPCREVERSION, overriding pkg-config
              linker flags for LIBPCREVERSION, overriding pkg-config
              C compiler flags for libhs, overriding pkg-config
  libhs_LIBS  linker flags for libhs, overriding pkg-config
              C compiler flags for libnetfilter_queue, overriding pkg-config
              linker flags for libnetfilter_queue, overriding pkg-config
  PCAP_CFLAGS C compiler flags for PCAP, overriding pkg-config
  PCAP_LIBS   linker flags for PCAP, overriding pkg-config
              C compiler flags for libhtp, overriding pkg-config
  libhtp_LIBS linker flags for libhtp, overriding pkg-config
              C compiler flags for LIBHTPMINVERSION, overriding pkg-config
              linker flags for LIBHTPMINVERSION, overriding pkg-config
              C compiler flags for LIBHTPDEVVERSION, overriding pkg-config
              linker flags for LIBHTPDEVVERSION, overriding pkg-config
              C compiler flags for libnspr, overriding pkg-config
              linker flags for libnspr, overriding pkg-config
              C compiler flags for libnss, overriding pkg-config
  libnss_LIBS linker flags for libnss, overriding pkg-config
  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
  LUA_LIBS    linker flags for LUA, overriding pkg-config
              C compiler flags for LUAJIT, overriding pkg-config
  LUAJIT_LIBS linker flags for LUAJIT, overriding pkg-config
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.
[root@mnidev1-deployer suricata-6.0.3]#

Hi Mika,

I’m puzzled because ./configure --help shows the 2 options that are being highlighted in the error message.

Can you post (or dm) your config.log ?