Closed EugenZikiy closed 2 years ago
Hi, it seems though your installation of GCC isn't specifying the correct flags for CMake to understand what to add. I don't know how you installed GCC 11 on CentOS 7, I assume from source, since the official repositories only provide up to 4.8.
As a fix I suggest you use software collections to install GCC 8.
$ sudo yum install centos-release-scl
$ sudo yum install devtoolset-8
$ scl enable devtoolset-8 bash
$ gcc --version
This should give you GCC 8 which should understand the flags CMake tries to set. Just delete the CMakeCache.txt after you enable the software collection and regenerate the CMake cache before trying to compile again.
Let me know if this works.
I followed your instructions and the installation completed successfully. Thank you for your help!
Hello!
I did the installation according to your instructions. At the stage "cmake .." I had the first error: At the stage "cmake --build . --config Release" I had the second error: At the same time, I updated cmake and gcc: The installation was performed on the CentOS 7 Minimal operating system.
Can you please tell me how this error can be fixed?