Error while installing cmdstanr version 2.24.0

Yes, if you get the error you got above, the first compilation will take a while. The messages are expected as well. Thanks!

Next compilations should now be faster.

I see where the problem is now. You have another g++ compiler installed on your system that clashes with the RTools one.

Two options:

  • remove C:\Program Files (x86)\GnuWin32\bin from PATH
  • move C:\rtools40\usr\bin and C:\rtools40\mingw64\bin before C:\Program Files (x86)\GnuWin32\bin in PATH

If you need assistance on how to remove from PATH/edit, let me know, I can help.

Also, C:\Rtools\bin is probaly also not needed anymore. I guess this is leftover from the old R install.

2 Likes