UPDATE: While I did not solve the problem of installing cmdstan (see below), I did solve my underlying problem: achieving within-chain parallellization on an offline server. I discovered that there is an rstan development build that uses stan 2.26.1, which supports the new reduce_sum function. I simply used the download.packages() function in R to download the two development versions recommended for windows users with Rtool42 and R versions 4.2, and installed these after uploading them to the server. The biggest hassle was identifying all the dependencies that had to be installed before rstan could be compiled.
Initial reply to original post:
You are right - re-reading the above thread I see that I got confused between rebuild_cmdstan() (which I am supposed to use) and install_cmdstan().
I now tried rebuild_cmdstan() - with my R home directory having a folder called .cmdstan, within which I had a folder with all the (extracted) files and subfolders from the cmdstan-2.31.0 file.
I get the following error message:
'cut' is not recognized as an internal or external command,
operable program or batch file.
'cut' is not recognized as an internal or external command,
operable program or batch file.
process_begin: CreateProcess(NULL, expr >= 8, ...) failed.
mingw32-make.exe: makefile:125: pipe: Bad file descriptor
INFO: Could not find files for the given pattern(s).
rm -f -r test
process_begin: CreateProcess(NULL, rm -f -r test, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe: *** [makefile:301: clean] Error 2
'cut' is not recognized as an internal or external command,
operable program or batch file.
'cut' is not recognized as an internal or external command,
operable program or batch file.
process_begin: CreateProcess(NULL, expr >= 8, ...) failed.
mingw32-make.exe: makefile:125: pipe: Bad file descriptor
INFO: Could not find files for the given pattern(s).
cp bin/windows-stanc bin/stanc.exe
process_begin: CreateProcess(NULL, cp bin/windows-stanc bin/stanc.exe, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe: *** [make/stanc:78: bin/stanc.exe] Error 2
This seems similar to an error message referenced here, where the recommendation is to
open up a git bash shell. Cd to the cmdstan directory ā eg:
cd /c/users/ajs/OneDrive/ajs/dev/cmdstan/
and run mingw32-make build
Using the windows file explorer I tried to open a command window in the cmdstan-2.31.0 folder, but I couldnāt figure out how to run the mingw32-make from the terminal window (the terminal did not recognize the filename as the mingw32-make file is in an entirely different location.)