Checked that on the cluster:
>g++ --version
>g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
On my local machine it’s
g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
I know CmdStan documentation suggests using 4.9.3 or later, but it works fine on my local machine.