Ninja build on CentOS 7

The binary executables for Ninja 1.9.0 do not work on CentOS 7, the error is like:

$ ninja

ninja: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ninja)
ninja: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ninja)

This is a known issue with the Ninja release artifact build process, which is planned to be fixed for Ninja 1.10.0.

Workaround

Until Ninja 1.10.0 is released, use Ninja 1.8.2 on CentOS. This may work for other “older” Linux distros with similar errors.