Hello everyone,
I recently need to re-build a bro package, but keep failed to run configure command because of GCC version.
By default does not have a high version, so I installed devtoolset and did symbolic link like below, Can anyone kindly help this issue?
/usr/bin/c++ → /opt/rh/devtoolset-3/root/usr/bin/c++
/usr/bin/gcc → /opt/rh/devtoolset-3/root/usr/bin/gcc.
[Here is details]
CMake Error at cmake/RequireCXX11.cmake:40 (message):
GCC version must be at least 4.8 for C++11 support, detected: 4.4.7
Call Stack (most recent call first):
CMakeLists.txt:168 (include)
– Configuring incomplete, errors occurred!
See also “/home/bluebike/bro-2.5.1/build/CMakeFiles/CMakeOutput.log”.
See also “/home/bluebike/bro-2.5.1/build/CMakeFiles/CMakeError.log”.
bash-4.1$ gcc --version
gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
bash-4.1$ c++ --version
c++ (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
Thank you in advance,
Regards,
SJ