Hi there,
I was trying to install cmdstan via Rstudio on Win10 OS. CmdStanR was successfully installed. I also followed https://www.maxmantei.com/2020/05/16/cmdstanr-windows/ to solve the problem of error message telling me that mingw32-make
could not be found. However, I still got error when installing cmdstan using install_cmdstan(cores = 2, overwrite=TRUE). Here is the error message, could you please help? Note that my Rtool is indeed installed in C:/Program Files (x86)/rtools40 and I have add path for folders C:/Program Files (x86)/rtools40\usr\bin and C:/Program Files (x86)/rtools40\mingw64\bin
C:/Program Files (x86)/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:/Program: No such file or directory
C:/Program Files (x86)/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find Files: No such file or directory
C:/Program Files (x86)/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find (x86)/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/lib/../lib/default-manifest.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
No such file or directory
Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.
mingw32-make.exe: *** [make/command:35: stan/lib/stan_math/lib/boost_1.72.0/stage/lib/libboost_program_options*.a] Error 1
mingw32-make.exe: *** Waiting for unfinished jobs....
Warning messages:
1: In readChar(make_local_path, file.info(make_local_path)$size) :
can only read in bytes in a non-UTF-8 MBCS locale
2: In readChar(make_local_path, file.info(make_local_path)$size) :
can only read in bytes in a non-UTF-8 MBCS locale
3: There was a problem during installation. See the error message(s) above.