# \#linux

**URL:** https://discourse.mc-stan.org/tag/linux/13.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)

---

## [Cmdstan installation fails on linux - issue with tbb?](https://discourse.mc-stan.org/t/cmdstan-installation-fails-on-linux-issue-with-tbb/31125)

<div class="topic-metadata">

**Author:** [@Unlearned5341](https://discourse.mc-stan.org/u/Unlearned5341)\
**Replies:** 4\
**Last updated:** [April 2, 2026, 10:43am UTC](https://discourse.mc-stan.org/t/cmdstan-installation-fails-on-linux-issue-with-tbb/31125 "2026-04-02T10:43:28Z")

</div>

I wish my first post would not be about an installation issue… but here I am! Yesterday, I upgraded my linux system from Fedora 37 to Fedora 38 and noticed I could not compile Stan models with cmdstanr anymore. I have tr…

---

## [Cmdstan won't compile if there is a model.r file present](https://discourse.mc-stan.org/t/cmdstan-wont-compile-if-there-is-a-model-r-file-present/39428)

<div class="topic-metadata">

**Author:** [@tpapp](https://discourse.mc-stan.org/u/tpapp)\
**Replies:** 9\
**Last updated:** [May 16, 2025, 12:59pm UTC](https://discourse.mc-stan.org/t/cmdstan-wont-compile-if-there-is-a-model-r-file-present/39428 "2025-05-16T12:59:54Z")

</div>

(I am asking here before opening an issue in case it is something trivial) Using cmdstan master (e45ceca604c0af), the makefile does not work when there is an .r file present with the same name as the .stan file. Instead…

---

## [If you use CmdStan on non-x86, non-arm64 Linux, speak up here!](https://discourse.mc-stan.org/t/if-you-use-cmdstan-on-non-x86-non-arm64-linux-speak-up-here/37655)

<div class="topic-metadata">

**Author:** [@WardBrian](https://discourse.mc-stan.org/u/WardBrian)\
**Replies:** 4\
**Last updated:** [March 17, 2025, 4:43pm UTC](https://discourse.mc-stan.org/t/if-you-use-cmdstan-on-non-x86-non-arm64-linux-speak-up-here/37655 "2025-03-17T16:43:29Z")

</div>

Starting with Stan 2.28 in 2021, we’ve been producing CmdStan tarballs for the following “non-standard” platforms: linux-armel linux-armhf linux-ppc64el linux-mips64el linux-s390x The only difference is that these hav…

---

## [Running Stan on the GPU with OpenCL on WSL: Seeking Assistance](https://discourse.mc-stan.org/t/running-stan-on-the-gpu-with-opencl-on-wsl-seeking-assistance/36149)

<div class="topic-metadata">

**Author:** [@CLRR](https://discourse.mc-stan.org/u/CLRR)\
**Replies:** 18\
**Last updated:** [February 23, 2025, 2:31pm UTC](https://discourse.mc-stan.org/t/running-stan-on-the-gpu-with-opencl-on-wsl-seeking-assistance/36149 "2025-02-23T14:31:02Z")

</div>

I am attempting to execute the instructions from Running Stan on the GPU with OpenCL • cmdstanr on Windows Subsystem for Linux 2 (WSL2). While the code runs, the execution time for model fitting on the GPU is not signifi…

---

## [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…

---

## [CmdStanR with Windows Subsystem for Linux may compile model way slower than CmdStanR with (pure) Windows?](https://discourse.mc-stan.org/t/cmdstanr-with-windows-subsystem-for-linux-may-compile-model-way-slower-than-cmdstanr-with-pure-windows/28381)

<div class="topic-metadata">

**Author:** [@CLRR](https://discourse.mc-stan.org/u/CLRR)\
**Replies:** 13\
**Last updated:** [August 1, 2022, 7:07pm UTC](https://discourse.mc-stan.org/t/cmdstanr-with-windows-subsystem-for-linux-may-compile-model-way-slower-than-cmdstanr-with-pure-windows/28381 "2022-08-01T19:07:06Z")

</div>

I found that the compiling speed of CmdStanR (0.5.3) with Windows Subsystem for Linux (WSL) is 6 times slower than CmdStanR with (pure) Windows, at least in my environment. Is this reproducible phenomenon in any other Wi…

---

## [Double free or corruption (out) depending on Linux version](https://discourse.mc-stan.org/t/double-free-or-corruption-out-depending-on-linux-version/26805)

<div class="topic-metadata">

**Author:** [@jfhawkin](https://discourse.mc-stan.org/u/jfhawkin)\
**Replies:** 11\
**Last updated:** [March 21, 2022, 2:55pm UTC](https://discourse.mc-stan.org/t/double-free-or-corruption-out-depending-on-linux-version/26805 "2022-03-21T14:55:04Z")

</div>

I am running a model on my university cluster. It’s my first time running my Stan code anywhere except my laptop. The computing center support team has been able to help me narrow the issue to a difference between the in…

---

## [Unable to install Rstan on an old linux computer cluster](https://discourse.mc-stan.org/t/unable-to-install-rstan-on-an-old-linux-computer-cluster/26235)

<div class="topic-metadata">

**Author:** [@hlisheng](https://discourse.mc-stan.org/u/hlisheng)\
**Replies:** 3\
**Last updated:** [February 9, 2022, 12:24pm UTC](https://discourse.mc-stan.org/t/unable-to-install-rstan-on-an-old-linux-computer-cluster/26235 "2022-02-09T12:24:50Z")

</div>

Hi, I’ve been using rstan for quite a while, but am a Linux beginner. Recently I needed to install Rstan on a pretty old Linux computer cluster and ran into some hard problems. Linux system info: \[xxngshelisheng@l01 ~\]…

---

## [Error when running rstan in linux batch mode](https://discourse.mc-stan.org/t/error-when-running-rstan-in-linux-batch-mode/25699)

<div class="topic-metadata">

**Author:** [@Marcio](https://discourse.mc-stan.org/u/Marcio)\
**Replies:** 20\
**Last updated:** [January 5, 2022, 7:06pm UTC](https://discourse.mc-stan.org/t/error-when-running-rstan-in-linux-batch-mode/25699 "2022-01-05T19:06:03Z")

</div>

I am trying to run a very simple model with rstan in batch mode. When I try to run the same code, but not in batch mode, I do not have this error. I checked a similar discussion (Error when running rstan with linux) in …

---

## [Rstan compilation hangs on Linux server](https://discourse.mc-stan.org/t/rstan-compilation-hangs-on-linux-server/23604)

<div class="topic-metadata">

**Author:** [@nshetty](https://discourse.mc-stan.org/u/nshetty)\
**Replies:** 1\
**Last updated:** [August 22, 2021, 9:12pm UTC](https://discourse.mc-stan.org/t/rstan-compilation-hangs-on-linux-server/23604 "2021-08-22T21:12:35Z")

</div>

Hi Team, I have a stan code which run perfectly fine on my laptop (Windows 10) but hangs when run on the Linux server (Ubuntu 20.04.2 LTS). I can run Rstan example(stan\_model, package = “rstan”, run.dontrun = TRUE) and…

---

## [Error in compileCode in brms ubuntu 20.04](https://discourse.mc-stan.org/t/error-in-compilecode-in-brms-ubuntu-20-04/21615)

<div class="topic-metadata">

**Author:** [@graden](https://discourse.mc-stan.org/u/graden)\
**Replies:** 6\
**Last updated:** [April 8, 2021, 4:21pm UTC](https://discourse.mc-stan.org/t/error-in-compilecode-in-brms-ubuntu-20-04/21615 "2021-04-08T16:21:12Z")

</div>

Dear all, I’ve been having such a lovely time in the land of Linux, until a few weeks ago my compiler stopped worked unexpectedly. I am on Ubuntu 20.04, all packages up to date (sessionInfo at bottom of this message). P…

---

## [Parallelising chains in cmdstan batch script \[Linux\]](https://discourse.mc-stan.org/t/parallelising-chains-in-cmdstan-batch-script-linux/19672)

<div class="topic-metadata">

**Author:** [@scijens](https://discourse.mc-stan.org/u/scijens)\
**Replies:** 2\
**Last updated:** [December 8, 2020, 12:37pm UTC](https://discourse.mc-stan.org/t/parallelising-chains-in-cmdstan-batch-script-linux/19672 "2020-12-08T12:37:18Z")

</div>

I am running a model estimation with cmdstan on a linux machine. I sent a batch script to the machine and it started to run the first chain. However, according to the output file, the second chain is not running. I am wo…

---

## [Run chains in parallel and increase max treedepth in CmdStan](https://discourse.mc-stan.org/t/run-chains-in-parallel-and-increase-max-treedepth-in-cmdstan/19523)

<div class="topic-metadata">

**Author:** [@Jochen](https://discourse.mc-stan.org/u/Jochen)\
**Replies:** 2\
**Last updated:** [November 27, 2020, 3:53pm UTC](https://discourse.mc-stan.org/t/run-chains-in-parallel-and-increase-max-treedepth-in-cmdstan/19523 "2020-11-27T15:53:27Z")

</div>

I am using CmdStan on a linux machine and I want to increase the max treedepth and run 2 chains in parallel. However, I did not find the information how to do it in the CmdStan User’s Guide. I am running the model\_file…

---

## [CmdStan fails reading .R data on Linux](https://discourse.mc-stan.org/t/cmdstan-fails-reading-r-data-on-linux/19487)

<div class="topic-metadata">

**Author:** [@Jochen](https://discourse.mc-stan.org/u/Jochen)\
**Replies:** 4\
**Last updated:** [November 26, 2020, 8:52am UTC](https://discourse.mc-stan.org/t/cmdstan-fails-reading-r-data-on-linux/19487 "2020-11-26T08:52:25Z")

</div>

Hi everyone, I hope this is now my last question on making CmdStan run on a Linux high-performance cluster. First of all: I ran the same model with the same data file on a Windows computer with CmdStan and it worked, so…

---

## [Run CmdStan on Linux: Error 1 \[No such file or directory\]](https://discourse.mc-stan.org/t/run-cmdstan-on-linux-error-1-no-such-file-or-directory/19470)

<div class="topic-metadata">

**Author:** [@Jochen](https://discourse.mc-stan.org/u/Jochen)\
**Replies:** 9\
**Last updated:** [November 25, 2020, 2:26pm UTC](https://discourse.mc-stan.org/t/run-cmdstan-on-linux-error-1-no-such-file-or-directory/19470 "2020-11-25T14:26:28Z")

</div>

After installing CmdStan on a Linux machine, I get an error message when running make commands in the cmdstand folder. I both tried to clone CmdStan from the GitHub Repository and to download the cmdstan-2.25.0.tar.gz, a…

---

## [RStan fails to install on CentOS 7](https://discourse.mc-stan.org/t/rstan-fails-to-install-on-centos-7/15957)

<div class="topic-metadata">

**Author:** [@AndrewKostandy](https://discourse.mc-stan.org/u/AndrewKostandy)\
**Replies:** 10\
**Last updated:** [June 17, 2020, 2:45pm UTC](https://discourse.mc-stan.org/t/rstan-fails-to-install-on-centos-7/15957 "2020-06-17T14:45:42Z")

</div>

Summary: I’m am unable to install the rstan package on a linux machine running CentOS 7. Description: Here’s my session info: R version 3.6.0 (2019-04-26) Platform: x86\_64-redhat-linux-gnu (64-bit) Running under: Cen…
