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 was a known issue with the Ninja release artifact build process that was fixed in Ninja 1.10.0.
If Ninja 1.10.0 is not available, use Ninja 1.8.2 on CentOS. This may work for other “older” Linux distros with similar errors.