# \#installation

**URL:** https://discourse.mc-stan.org/tag/installation/10.md

[Latest](https://discourse.mc-stan.org/latest.md) · [Categories](https://discourse.mc-stan.org/categories.md) · [Tags](https://discourse.mc-stan.org/tags.md)

---

## [Cannot install Cmdstan due to Windows 11 permissions issue](https://discourse.mc-stan.org/t/cannot-install-cmdstan-due-to-windows-11-permissions-issue/41382)

<div class="topic-metadata">

**Author:** [@qdread](https://discourse.mc-stan.org/u/qdread)\
**Replies:** 1\
**Last updated:** [June 26, 2026, 6:33pm UTC](https://discourse.mc-stan.org/t/cannot-install-cmdstan-due-to-windows-11-permissions-issue/41382 "2026-06-26T18:33:35Z")

</div>

Hello, I am a Stan user who has to use a work PC that is configured with various restrictions. I have had issues installing Cmdstan in the past ( Windows 11 cmdstan installation issue: Architecture not detected, related …

---

## [Cannot install rethinking package](https://discourse.mc-stan.org/t/cannot-install-rethinking-package/41081)

<div class="topic-metadata">

**Author:** [@Fenris\_BD](https://discourse.mc-stan.org/u/Fenris_BD)\
**Replies:** 2\
**Last updated:** [May 1, 2026, 9:35pm UTC](https://discourse.mc-stan.org/t/cannot-install-rethinking-package/41081 "2026-05-01T21:35:41Z")

</div>

Hello, I am having a heck of a time getting the rethinking package to install. Install hangs up on the lazy loading stage and then throws an error. Tried installing via devtools from github as instructed without success…

---

## [Error in compileCode](https://discourse.mc-stan.org/t/error-in-compilecode/39483)

<div class="topic-metadata">

**Author:** [@mattansb](https://discourse.mc-stan.org/u/mattansb)\
**Replies:** 2\
**Last updated:** [May 17, 2025, 7:55pm UTC](https://discourse.mc-stan.org/t/error-in-compilecode/39483 "2025-05-17T19:55:39Z")

</div>

I am teaching Stan and many of my students are getting the following error when following the RStan Getting Started guide: remove.packages("rstan") if (file.exists(".RData")) file.remove(".RData") # Close all RStudio se…

---

## [How to install Rtools 4.4 toolchain for CmdStanR on Windows from tarball (Behind firewall)](https://discourse.mc-stan.org/t/how-to-install-rtools-4-4-toolchain-for-cmdstanr-on-windows-from-tarball-behind-firewall/38641)

<div class="topic-metadata">

**Author:** [@Gregory\_Hunter](https://discourse.mc-stan.org/u/Gregory_Hunter)\
**Replies:** 4\
**Last updated:** [January 30, 2025, 1:47am UTC](https://discourse.mc-stan.org/t/how-to-install-rtools-4-4-toolchain-for-cmdstanr-on-windows-from-tarball-behind-firewall/38641 "2025-01-30T01:47:33Z")

</div>

I’ve posted here before on this subject, but things have changed somewhat since Rtools 4.2. I am trying to get CmdStanR running behind a restrictive firewall. I must always download the installer executables elsewhere an…

---

## [Problem installing cmdstanr on Mac](https://discourse.mc-stan.org/t/problem-installing-cmdstanr-on-mac/38428)

<div class="topic-metadata">

**Author:** [@manateesloth](https://discourse.mc-stan.org/u/manateesloth)\
**Replies:** 18\
**Last updated:** [January 20, 2025, 4:35pm UTC](https://discourse.mc-stan.org/t/problem-installing-cmdstanr-on-mac/38428 "2025-01-20T16:35:03Z")

</div>

I’m trying to install cmdrstanr onto a Mac but keep getting the error ‘sstream’ file not found. I’ve tried some of the fixes suggested elsewhere, like trying to install the GitHub version instead, but keep getting the sa…

---

## [Problem installing cmdstanpy on a Mac](https://discourse.mc-stan.org/t/problem-installing-cmdstanpy-on-a-mac/38537)

<div class="topic-metadata">

**Author:** [@Bryan\_Palmer](https://discourse.mc-stan.org/u/Bryan_Palmer)\
**Replies:** 1\
**Last updated:** [January 20, 2025, 6:13am UTC](https://discourse.mc-stan.org/t/problem-installing-cmdstanpy-on-a-mac/38537 "2025-01-20T06:13:29Z")

</div>

I am using cmdstanpy in a micromamba environment on a Mac running Sequoia 15.2 The core error message I get is: Chain \[1\] dyld\[973\]: Symbol not found: \_\_ZN3tbb4task13note\_affinityEt From scanning the web, it looks lik…

---

## [Warnings when compiling CmdStan code on linux/arm64](https://discourse.mc-stan.org/t/warnings-when-compiling-cmdstan-code-on-linux-arm64/37320)

<div class="topic-metadata">

**Author:** [@jmgirard](https://discourse.mc-stan.org/u/jmgirard)\
**Replies:** 1\
**Last updated:** [November 20, 2024, 9:45pm UTC](https://discourse.mc-stan.org/t/warnings-when-compiling-cmdstan-code-on-linux-arm64/37320 "2024-11-20T21:45:15Z")

</div>

I am building a dockerfile based on rocker/rstudio (rocker-bayes/bayes\_4.4.1.Dockerfile at main · jmgirard/rocker-bayes · GitHub). When building on amd64, everything works great. However, on arm64, when I run cmdstanr::i…

---

## [Issues with stan in python: error Command 'make' error during processing No such file or directory](https://discourse.mc-stan.org/t/issues-with-stan-in-python-error-command-make-error-during-processing-no-such-file-or-directory/36790)

<div class="topic-metadata">

**Author:** [@madelynandersen](https://discourse.mc-stan.org/u/madelynandersen)\
**Replies:** 11\
**Last updated:** [October 8, 2024, 9:27pm UTC](https://discourse.mc-stan.org/t/issues-with-stan-in-python-error-command-make-error-during-processing-no-such-file-or-directory/36790 "2024-10-08T21:27:54Z")

</div>

Hi, I am trying to use stan in python to fit a 1d gaussian toy problem with a specified prior on the mean. I have been successful using R, but I need to also use python. I have tried using pystan (to no success - I would…

---

## [Rtools re-install every time i try to run](https://discourse.mc-stan.org/t/rtools-re-install-every-time-i-try-to-run/36426)

<div class="topic-metadata">

**Author:** [@Jonathan\_Tullis](https://discourse.mc-stan.org/u/Jonathan_Tullis)\
**Replies:** 1\
**Last updated:** [September 20, 2024, 8:53pm UTC](https://discourse.mc-stan.org/t/rtools-re-install-every-time-i-try-to-run/36426 "2024-09-20T20:53:54Z")

</div>

I have been trying to get rstan installed and running. I have followed the instructions here (RStan Getting Started · stan-dev/rstan Wiki · GitHub) as closely as possible. After following all of the steps, I get to thi…

---

## [Fatal error when installing older version of RStan](https://discourse.mc-stan.org/t/fatal-error-when-installing-older-version-of-rstan/36401)

<div class="topic-metadata">

**Author:** [@b\_e\_xiao](https://discourse.mc-stan.org/u/b_e_xiao)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 1:33pm UTC](https://discourse.mc-stan.org/t/fatal-error-when-installing-older-version-of-rstan/36401 "2024-08-29T13:33:03Z")

</div>

I tried to install a specific version of rstan with: remotes::install\_version(package = "rstan", version = "2.21.8") And I encountered the error: chains.cpp:19:10: \*\*fatal error：\*\*stan/math/prim/mat/fun/mean.hpp：No su…

---

## [Failed to Execute Stan's \`runTests.py\` on WSL2](https://discourse.mc-stan.org/t/failed-to-execute-stans-runtests-py-on-wsl2/36242)

<div class="topic-metadata">

**Author:** [@CLRR](https://discourse.mc-stan.org/u/CLRR)\
**Replies:** 6\
**Last updated:** [August 16, 2024, 2:41pm UTC](https://discourse.mc-stan.org/t/failed-to-execute-stans-runtests-py-on-wsl2/36242 "2024-08-16T14:41:34Z")

</div>

I previously reported that I failed to fit a model using CmdStanR on the GPU with OpenCL on WSL2, encountering the error Chain \<CHAIN\_NUMBER\> OpenCL Initialization: \[Device\] CL\_INVALID\_DEVICE: Unknown error -1, in this t…

---

## [Conda cmdstan installation errors on linux CentOS cluster](https://discourse.mc-stan.org/t/conda-cmdstan-installation-errors-on-linux-centos-cluster/35436)

<div class="topic-metadata">

**Author:** [@davidh](https://discourse.mc-stan.org/u/davidh)\
**Replies:** 1\
**Last updated:** [June 10, 2024, 5:33pm UTC](https://discourse.mc-stan.org/t/conda-cmdstan-installation-errors-on-linux-centos-cluster/35436 "2024-06-10T17:33:08Z")

</div>

Hello, I have been attempting to install cmdstan on a linux cluster using the recommended process (from here). conda create -n stan -c conda-forge cmdstan While installing, I got the following errors, I’m not sure if …

---

## [Cmdstanr::install\_cmdstan() GitHub Timeone, need authentication token](https://discourse.mc-stan.org/t/cmdstanr-install-cmdstan-github-timeone-need-authentication-token/35057)

<div class="topic-metadata">

**Author:** [@Richard\_Erickson](https://discourse.mc-stan.org/u/Richard_Erickson)\
**Replies:** 2\
**Last updated:** [May 7, 2024, 5:48pm UTC](https://discourse.mc-stan.org/t/cmdstanr-install-cmdstan-github-timeone-need-authentication-token/35057 "2024-05-07T17:48:56Z")

</div>

I’m getting a timeout for cmdstanr::install\_cmdstan(). Is there an option like: remotes::install\_github("stan-dev/cmdstanr", auth\_token = \<my private token here\>) for cmdstanr::install\_cmdstan()? This is being insta…

---

## [Error installing mingw32-make via RTools43](https://discourse.mc-stan.org/t/error-installing-mingw32-make-via-rtools43/34921)

<div class="topic-metadata">

**Author:** [@Vegae](https://discourse.mc-stan.org/u/Vegae)\
**Replies:** 2\
**Last updated:** [April 27, 2024, 8:02pm UTC](https://discourse.mc-stan.org/t/error-installing-mingw32-make-via-rtools43/34921 "2024-04-27T20:02:10Z")

</div>

Hi! I have been trying to install CmdStanR and get it to work on my laptop using the C++ toolchain tutorial listed here, however, I keep running into an error when trying to install the mingw32-make utility via Bash in R…

---

## [Cannot install rstan package on Ubuntu 18.04.6](https://discourse.mc-stan.org/t/cannot-install-rstan-package-on-ubuntu-18-04-6/34615)

<div class="topic-metadata">

**Author:** [@Wenyan\_Huang](https://discourse.mc-stan.org/u/Wenyan_Huang)\
**Replies:** 1\
**Last updated:** [April 8, 2024, 4:08pm UTC](https://discourse.mc-stan.org/t/cannot-install-rstan-package-on-ubuntu-18-04-6/34615 "2024-04-08T16:08:41Z")

</div>

Hi I’m trying to install rstan on Ubuntu Sudo R remove.packages(c(“StanHeaders”, “rstan”)) install.packages(“StanHeaders”, repos = c(“Repository for distributing (some) stan-dev R packages | r-packages”, getOption(“r…

---

## [Cmdstanr can't find makefile after installation...suspect network path problem](https://discourse.mc-stan.org/t/cmdstanr-cant-find-makefile-after-installation-suspect-network-path-problem/30040)

<div class="topic-metadata">

**Author:** [@briholt](https://discourse.mc-stan.org/u/briholt)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 5:11pm UTC](https://discourse.mc-stan.org/t/cmdstanr-cant-find-makefile-after-installation-suspect-network-path-problem/30040 "2024-04-02T17:11:58Z")

</div>

Well, after successfully installing cmdstanr on my work windows 10, I’m having issues with the path. I suspect it has something to do with my path directory being a network drive. When I try to run the following code, f…

---

## [Fatal error: gnu/stubs-64.h](https://discourse.mc-stan.org/t/fatal-error-gnu-stubs-64-h/34262)

<div class="topic-metadata">

**Author:** [@mthomas312](https://discourse.mc-stan.org/u/mthomas312)\
**Replies:** 2\
**Last updated:** [March 26, 2024, 7:20am UTC](https://discourse.mc-stan.org/t/fatal-error-gnu-stubs-64-h/34262 "2024-03-26T07:20:31Z")

</div>

\[edit: escaped code\] I can run simple models in brms but I am not even remotely qualified to try and debug errors so please bear with me. Our institution recently switched to a new high performance computing cluster and…

---

## [Installing Stanheaders can't find stdio.h file](https://discourse.mc-stan.org/t/installing-stanheaders-cant-find-stdio-h-file/34230)

<div class="topic-metadata">

**Author:** [@Ben\_Lambert](https://discourse.mc-stan.org/u/Ben_Lambert)\
**Replies:** 2\
**Last updated:** [February 24, 2024, 2:57pm UTC](https://discourse.mc-stan.org/t/installing-stanheaders-cant-find-stdio-h-file/34230 "2024-02-24T14:57:29Z")

</div>

I am trying to install the R Stanheaders package. When I do so, I get the following error: clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DNO\_FPRINTF\_OUTPUT -I"…/inst/i…

---

## [Error Install rstan in CentOS: C++17 standard requested but CXX17 is not defined](https://discourse.mc-stan.org/t/error-install-rstan-in-centos-c-17-standard-requested-but-cxx17-is-not-defined/34014)

<div class="topic-metadata">

**Author:** [@Abhishek\_R](https://discourse.mc-stan.org/u/Abhishek_R)\
**Replies:** 1\
**Last updated:** [February 15, 2024, 9:31pm UTC](https://discourse.mc-stan.org/t/error-install-rstan-in-centos-c-17-standard-requested-but-cxx17-is-not-defined/34014 "2024-02-15T21:31:21Z")

</div>

I am trying to install rstan in Centos. I am getting the following error: Error: C++17 standard requested but CXX17 is not defined My g++ version if relevant is the following: g++ --version g++ (GCC) 4.8.5 20150623 (…

---

## [Difficulty running brms on a Linux server](https://discourse.mc-stan.org/t/difficulty-running-brms-on-a-linux-server/20144)

<div class="topic-metadata">

**Author:** [@HuaiyuLiu](https://discourse.mc-stan.org/u/HuaiyuLiu)\
**Replies:** 15\
**Last updated:** [February 14, 2024, 3:34pm UTC](https://discourse.mc-stan.org/t/difficulty-running-brms-on-a-linux-server/20144 "2024-02-14T15:34:15Z")

</div>

Short summary of the problem Dear all, Sorry to interrupt you, I am writing this letter to ask for your help. I am running a Bayesian power analysis using the {brms} in a Server with Linux environment. But for some re…

---

## [Installation error rstan 2.21.8 when updating from 2.21.2](https://discourse.mc-stan.org/t/installation-error-rstan-2-21-8-when-updating-from-2-21-2/33865)

<div class="topic-metadata">

**Author:** [@sc9an](https://discourse.mc-stan.org/u/sc9an)\
**Replies:** 4\
**Last updated:** [January 18, 2024, 5:50pm UTC](https://discourse.mc-stan.org/t/installation-error-rstan-2-21-8-when-updating-from-2-21-2/33865 "2024-01-18T17:50:36Z")

</div>

Hi there, I was hoping to update my laptop rstan from 2.21.2 to 2.21.8 so that it better accommodates integer arrays. (The code int person\[Nobs\]; threw an error in the earlier version but worked fine in the newer one.)…

---

## [Problem installing Torsten 0.90](https://discourse.mc-stan.org/t/problem-installing-torsten-0-90/27585)

<div class="topic-metadata">

**Author:** [@arya](https://discourse.mc-stan.org/u/arya)\
**Replies:** 16\
**Last updated:** [January 3, 2024, 3:36am UTC](https://discourse.mc-stan.org/t/problem-installing-torsten-0-90/27585 "2024-01-03T03:36:41Z")

</div>

I downloaded Torsten 0.90 earlier today with just a git clone call. I then went into the cmdstan directory and did the usual make build: cd Torsten/cmdstan make build That ran just fine and I got the message that cmdst…

---

## [Fresh Conda installation of cmdstanpy does not work with bernoulli.stan example](https://discourse.mc-stan.org/t/fresh-conda-installation-of-cmdstanpy-does-not-work-with-bernoulli-stan-example/33672)

<div class="topic-metadata">

**Author:** [@mjblotinga](https://discourse.mc-stan.org/u/mjblotinga)\
**Replies:** 4\
**Last updated:** [January 2, 2024, 2:34pm UTC](https://discourse.mc-stan.org/t/fresh-conda-installation-of-cmdstanpy-does-not-work-with-bernoulli-stan-example/33672 "2024-01-02T14:34:55Z")

</div>

Fresh Conda installation of cmdstanpy does not work with bernoulli.stan example. Have followed the installation instructions to create a new conda environment install of cmdstanpy (Conda 23.5.2, cmdstan 2.33.1, cmdstanp…

---

## [How to install cmdstanr on server without Internet?](https://discourse.mc-stan.org/t/how-to-install-cmdstanr-on-server-without-internet/26770)

<div class="topic-metadata">

**Author:** [@Ricca117](https://discourse.mc-stan.org/u/Ricca117)\
**Replies:** 43\
**Last updated:** [November 28, 2023, 3:01am UTC](https://discourse.mc-stan.org/t/how-to-install-cmdstanr-on-server-without-internet/26770 "2023-11-28T03:01:19Z")

</div>

I need to run my codes with cmdstanr and I have made it successfully on my personal PC. However, the ultimate goal is to perform on server, which belongs to my university and is limited to Internet connection. So I wanna…

---

## [Compile issue with Rstan on Macbook Pro M1](https://discourse.mc-stan.org/t/compile-issue-with-rstan-on-macbook-pro-m1/33195)

<div class="topic-metadata">

**Author:** [@Tikavdm](https://discourse.mc-stan.org/u/Tikavdm)\
**Replies:** 16\
**Last updated:** [November 22, 2023, 1:58pm UTC](https://discourse.mc-stan.org/t/compile-issue-with-rstan-on-macbook-pro-m1/33195 "2023-11-22T13:58:38Z")

</div>

Good day I have struggling to get my Rstan working again on my M1 Mac, perhaps some updates messed with it. I have followed the instructions on the Getting Started Page from scratch, but when running the example I get …

---

## [Rstan installation troubles](https://discourse.mc-stan.org/t/rstan-installation-troubles/31268)

<div class="topic-metadata">

**Author:** [@Ruben222](https://discourse.mc-stan.org/u/Ruben222)\
**Replies:** 49\
**Last updated:** [November 21, 2023, 4:09pm UTC](https://discourse.mc-stan.org/t/rstan-installation-troubles/31268 "2023-11-21T16:09:41Z")

</div>

Hello. I am trying to install rstan fresh on a new machine. I have followed all the steps given here (RStan Getting Started · stan-dev/rstan Wiki · GitHub) but I cannot get the test model to run (example(stan\_model, pack…

---

## [Cmdstan installation error](https://discourse.mc-stan.org/t/cmdstan-installation-error/32900)

<div class="topic-metadata">

**Author:** [@cjsrussell](https://discourse.mc-stan.org/u/cjsrussell)\
**Replies:** 11\
**Last updated:** [September 27, 2023, 10:17am UTC](https://discourse.mc-stan.org/t/cmdstan-installation-error/32900 "2023-09-27T10:17:28Z")

</div>

I am trying to install cmdstand to then use with cmdstanr but the installation fails whenever I try. I was following the install guide here: Getting started with CmdStanR • cmdstanr (mc-stan.org) I am using windows 11. …

---

## [Cmdstanr installation error](https://discourse.mc-stan.org/t/cmdstanr-installation-error/32702)

<div class="topic-metadata">

**Author:** [@Copula\_H](https://discourse.mc-stan.org/u/Copula_H)\
**Replies:** 2\
**Last updated:** [September 10, 2023, 10:17pm UTC](https://discourse.mc-stan.org/t/cmdstanr-installation-error/32702 "2023-09-10T22:17:08Z")

</div>

Hi, I updated my R version to 4.3.1 and have had to reinstall cmdstanr. I use the code install.packages(“cmdstanr”, repos = c(“Repository for distributing (some) stan-dev R packages | r-packages”, getOption(“repos”))) …

---

## [Cmdstanr::install\_cmdstan failing on M1 Mac Ventura](https://discourse.mc-stan.org/t/cmdstanr-install-cmdstan-failing-on-m1-mac-ventura/32292)

<div class="topic-metadata">

**Author:** [@jstor\_and\_chill](https://discourse.mc-stan.org/u/jstor_and_chill)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 3:10pm UTC](https://discourse.mc-stan.org/t/cmdstanr-install-cmdstan-failing-on-m1-mac-ventura/32292 "2023-08-21T15:10:14Z")

</div>

I just yesterday got rstan back up and running on my M1 Mac running Ventura (thanks to some great help from @andrjohns !). However, I’m now failing to install cmdstanr. Everything looks good when I install cmdstan and ch…

---

## [Configure Rtools40 for CMDSTAN](https://discourse.mc-stan.org/t/configure-rtools40-for-cmdstan/24318)

<div class="topic-metadata">

**Author:** [@Snailittle\_ZZ](https://discourse.mc-stan.org/u/Snailittle_ZZ)\
**Replies:** 2\
**Last updated:** [August 18, 2023, 8:40am UTC](https://discourse.mc-stan.org/t/configure-rtools40-for-cmdstan/24318 "2023-08-18T08:40:37Z")

</div>

My Rtools40 is missing mingw32-make. I tried to run the following check\_cmdstan commands check\_cmdstan\_toolchain(fix = TRUE) and it didn’t work. I realized it may be due to the computer being company restricted. I coul…

[Next page](https://discourse.mc-stan.org/tag/installation/10.md?match_all_tags=true&page=1&tags%5B%5D=installation)
