Zeek Compling

Hello Team,

could someone help me on the issue iam facing

yum install cmake make gcc gcc-c++ flex bison libpcap-devel openssl-devel python-devel swig zlib-devel

the above command on centos is not installing latest packages of cmake,gcc,gcc-c++ which is required to compile zeek on centos

Did anyone recently complied zeek on centos 7.any help is much appreciated

Hi,

you’ll need to install cmake3 and devtoolset-7.

The most recent documentation has a small section for the steps necessary on CentOS: https://docs.zeek.org/en/latest/install/install.html#required-dependencies.

Hope that helps.

    Dominik

Thanks Dominik… I installed cmake3 but that has a dependency of gcc7.2.0 above which I installed but when I compile Zeek it is complaining gcc should be 7.0 above

Thanks Dominik.. I installed cmake3 but that has a dependency of gcc7.2.0 above which I installed but when I compile Zeek it is complaining gcc should be 7.0 above

By default, CMake picks up the system compiler, which is too old. If you’ve installed the devtoolkit then you can either enable it using "scl enable devtoolset-7 bash” or you can point CMake to the right compiler, e.g., by setting the CXX environment variable (for the configure script) or invoking CMake manually with -DCMAKE_CXX_COMPILER=<path>.