You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
utility. After running the installer, you must add
392
-
the location of the Rtools compiler and make utilities
393
-
to the `PATH` environment variable. If you have `Rtools40`, these should be:
383
+
CmdStan is known compatible with the RTools40, RTools42, and RTools43 toolchains. These require slightly
384
+
different steps to configure, so please follow the appropriate steps below. All toolchains will require
385
+
updating your `PATH` variable, See [these instructions](https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/)
386
+
for details on changing the `PATH` if you are unfamiliar. The following instructions will assume that the default installation
387
+
directory was used, so be sure to update the paths accordingly if you have chosen a different
388
+
directory.
389
+
390
+
##### RTools40
391
+
392
+
RTools40 provides both a standard `g++-8` toolchain and a `g++-10` Universal C Runtime (UCRT) toolchain.
393
+
Note the that newer `g++-10` UCRT toolchain is only available for 64-bit systems, whereas the `g++-8`
394
+
toolchain is available for both. Additionally the UCRT is only natively supported on Windows 10 and newer,
395
+
older systems will require a [Microsoft update](https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c)
396
+
397
+
###### Installation
398
+
399
+
Download the [installer](https://github.com/r-windows/rtools-installer/releases/download/2022-02-06/rtools40-x86_64.exe)
400
+
and complete the prompts to install.
401
+
402
+
Next, you need to add the location of the toolchain to your `PATH` environment variable so that it
403
+
can be called from the command line. Add the following lines to your `PATH`:
404
+
```
405
+
C:\rtools40\usr\bin
406
+
407
+
# Add only one of the below
408
+
C:\rtools40\mingw32\bin # 32-bit g++-8
409
+
C:\rtools40\mingw64\bin # 64-bit g++-8
410
+
C:\rtools40\ucrt64\bin # 64-bit g++-10 (UCRT)
411
+
```
412
+
413
+
CmdStan additionally needs the `mingw32-make` utility, which you can install using RTools.
414
+
Navigate to the installation directory (e.g., `C:\rtools40`) and launch the `msys2.exe` file.
415
+
Execute the appropriate command below to install `mingw32-make` for your selected toolchain:
0 commit comments