I can’t make build cmdstan v2.24.0 on Windows 10 with rtools40.
$ make build
INFO: Could not find files for the given pattern(s).
NOTE: Please add /c/Users/nbanho/Documents/cmdstan/stan/lib/stan_math/lib/tbb to your PATH variable.
You may call
mingw32-make install-tbb
to automatically update your user configuration.
--- CmdStan v2.24.0 built ---
I added the PATH variable manually in the Advanced Settings on Windows already. Executing mingw32-make install-tbb won’t work either in this respect.
$ mingw32-make install-tbb
INFO: Could not find files for the given pattern(s).
cmd.exe /C install-tbb.bat
Permanently setting the PATH user environment variable:
ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Type "SETX /?" for usage.
Please close this shell and open a new shell.
This will make the changes to the PATH variable
become active.
Oh, that is why you are seeing the path formatted that way then. RTools shell does not pick applications from PATH on Windows, as it can be more isolated from the rest of your system.
If you want to use the Rtools shell you will have to, therefore, live with the DLL files being copied or
run the below before you use cmdstan (every session)
Ah ok, thanks. Sorry for this maybe stupid question, but what is the issue of .dll files being copied?
I don’t know if it is related, but I wanted to use cmdstanr. I am having problems now as it says that the CmdStan path has not been set yet,
main <- cmdstan_model(negbinom_file)
Compiling Stan program...
Error: CmdStan path has not been set yet. See ?set_cmdstan_path.
although it has been and cmdstan_path is showing it:
cmdstan_path()
[1] "C:/Users/SpAdmin/Documents/.cmdstanr/cmdstan-2.24.0"
Warning message:
Can't find CmdStan makefile to detect version number. Path may not point to valid installation.
Do you mean in a sense why do we need to copy it? If that is the question that is related to how Windows handles linking your program with a .dll file. On windows you have two options to do that: Either the .dll is in one of the folders listed in your PATH or is in the same folder as your executable. And if cmdstan cant find the .dll in your PATH, the it will just copy it beside your .exe file to solve this problem.
Regarding your cmdstanr error:
Just install cmdstan again. I think this was a failed installation.
So run install_cmdstan(overwrite = TRUE, cores = 4)
Thanks for this explanation. I meant more if copying the .dll file will affect my Stan experience later on (e.g., performance or memory issues, or something not running as per default)? Otherwise, I think I could live with it.
Perfect, running install_cmdstan() worked perfectly. Looking forward to the runtime improvements.
Thank you so much for taking the time to help, made my day! :)
I have big problems installing cmdstanr. When I run rebuild_cmdstan(),
it ends on
NOTE: Please add C:/Users/Polly/Documents/.cmdstan/cmdstan-2.33.1/stan/lib/stan_math/lib/tbb to your PATH variable.
You may call
mingw32-make install-tbb
but I have no idea how to do this and all my googling always leads me here. My hope is that this will fixes cmdstanr because currently it is not working.