Question / Help Unable to install OBS on centos 7


New Member
Hi there,
when I try to install OBS on centos 7 I have this error
CMake Error in deps/obs-scripting/CMakeLists.txt:
  Target "obs-scripting" requires the language dialect "CXX17" , but CMake
  does not know the compile flags to use to enable it.
after enter the command
cmake3 -DUNIX_STRUCTURE=1 ..
I don't know how to fix it.


New Member
If you haven't yet resolved it, simple googling points to old CMake in CentOS7.
See this answer on SO: for versions info.

I had similar issue after OBS switch to C++17 which is not an option for my distro, so I got as far as this commit:
..and it tells me to stick with 24.0.3 which compiles nicely (was released before this breaking merge). This worked for me.

It would be nice if upping the C version for Windows 10 did not affect linux users on stable builds though.
If you feel confident, you may want to rollback some parts of codebase and try to lower dependency back to 2.8.12. I didn't have time and expertise for that.


New Member
I'm experiencing the same problem. But updating Cmake didn't help:

> ~/cmake-3.17.0-Linux-x86_64/bin/cmake --version
cmake version 3.17.0
> gcc --version
gcc (GCC) 8.3.0
Any other idea?


New Member
The solution to my problem was given in the answer on SO.
in Short:
/usr/local/bin/g++ is now in the correct version, but /bin/g++ has the old version. Cmake uses the latter. So:

sudo mv /bin/g++ /bin/g++_bak
sudo ln -s /usr/local/bin/g++ /bin/g++