# Question about GCC version error while run configure

**URL:** <https://community.zeek.org/t/question-about-gcc-version-error-while-run-configure/5027>\
**Category:** Zeek\
**Created:** [September 22, 2017, 1:22am UTC](https://community.zeek.org/t/question-about-gcc-version-error-while-run-configure/5027 "2017-09-22T01:22:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SJ\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@SJ\_Lee](https://community.zeek.org/u/SJ_Lee)\
**Post date:** [September 22, 2017, 1:22am UTC](https://community.zeek.org/t/question-about-gcc-version-error-while-run-configure/5027/1 "2017-09-22T01:22:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [September 22, 2017, 1:37am UTC](https://community.zeek.org/t/question-about-gcc-version-error-while-run-configure/5027/2 "2017-09-22T01:37:19Z")

</div>

The compiler used gets cached inside build/

If you've installed a new one it won't get picked up automatically,

&nbsp;&nbsp;&nbsp;&nbsp;rm -r build/  
&nbsp;&nbsp;&nbsp;./configure

Should fix that.

---

<div class="post-metadata">

**Author:** ![SJ\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@SJ\_Lee](https://community.zeek.org/u/SJ_Lee)\
**Post date:** [September 22, 2017, 1:40pm UTC](https://community.zeek.org/t/question-about-gcc-version-error-while-run-configure/5027/3 "2017-09-22T13:40:57Z")

</div>

Thanks a lot, finally issues are resolved.

–SJ

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:45pm UTC](https://community.zeek.org/t/question-about-gcc-version-error-while-run-configure/5027/4 "2022-05-06T15:45:17Z")

</div>


