Having trouble updating rstan to the latest version on Linux. These are the errors I get:
/R/x86_64-redhat-linux-gnu-library/3.3/StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids initialization of member ‘has_var_’
/R/x86_64-redhat-linux-gnu-library/3.3/StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: making ‘has_var_’ static
/R/x86_64-redhat-linux-gnu-library/3.3/StanHeaders/include/src/stan/lang/ast/node/conditional_op.hpp:40: error: ISO C++ forbids in-class initialization of non-const static member ‘has_var_’
make: *** [lang__ast_def.o] Error 1
If you are on Red Hat Enterprise 6 (and judging from that GCC version, that seems to be the case), I’d recommend getting (or asking the sysadmin to get) the free Red Hat Developer Toolset, which has a more up-to-date developer toolchain.
I am not sure whether a stock RHEL7 is going to be adequate going forward. For Stan 2.18.x, the minimum requirement is going to be g++-4.9 or a more recent version of clang++. You can get those for RHEL7 but I don’t know if they come with RHEL7.