I am using R version 4.3.2 (2023-10-31 ucrt) – “Eye Holes” and want to install cmdstanr. When using
install_cmdstan()
I get the error message
In file included from c:\rtools43\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\12.3.0\include\c++\fstream:1298,
from stan/src/stan/model/model_header.hpp:18:
c:\rtools43\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\12.3.0\include\c++\bits\fstream.tcc:1100:1: fatal error: cannot write PCH file: required memory segment unavailable
1100 | } // namespace std
| ^
compilation terminated.
make: *** [make/program:30: stan/src/stan/model/model_header.hpp.gch/model_header_12_3.hpp.gch] Error 1
make: *** Waiting for unfinished jobs....
I tried cleaning up the PCH files but somehow it won’t fix the problem…Has anyone an idea how to solve this issue? I am working on a Surface Pro 9 under Windows 11. I will try it later on my desktop computer, maybe its a specific problem related to the surface laptop.
Many thanks!
Edit. Indeed, on my desktop it does work flawlessly! It must be a problem with the surface laptop. Anyway, I work with my desktop from now on, but it should still be interesting to know why it doesn’t work on the surface pro 9!