# \#mac

**URL:** https://discourse.mc-stan.org/tag/mac/12.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 compile Rstan Code on Mac M1 and cannot instan cmdstan](https://discourse.mc-stan.org/t/cannot-compile-rstan-code-on-mac-m1-and-cannot-instan-cmdstan/37595)

<div class="topic-metadata">

**Author:** [@aeich](https://discourse.mc-stan.org/u/aeich)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 12:13am UTC](https://discourse.mc-stan.org/t/cannot-compile-rstan-code-on-mac-m1-and-cannot-instan-cmdstan/37595 "2024-12-12T00:13:54Z")

</div>

I have problems running STAN code on a Mac M1. Previously, everything worked as expected but then I needed to install llvm with brew to compile some other packages from source (I think that’s the cause of the problem). N…

---

## [Compilation error when verifying install of Rstan](https://discourse.mc-stan.org/t/compilation-error-when-verifying-install-of-rstan/35553)

<div class="topic-metadata">

**Author:** [@OlofDan](https://discourse.mc-stan.org/u/OlofDan)\
**Replies:** 3\
**Last updated:** [November 6, 2024, 12:54am UTC](https://discourse.mc-stan.org/t/compilation-error-when-verifying-install-of-rstan/35553 "2024-11-06T00:54:27Z")

</div>

Upgraded Studio on my MacBook Air. All my packages went out the window for some reason. When reinstalling Rstan I couldn’t get the verification to work (example(stan\_model, package = “rstan”, run.dontrun = TRUE)) Recei…

---

## [Cmdstan on Mac](https://discourse.mc-stan.org/t/cmdstan-on-mac/30550)

<div class="topic-metadata">

**Author:** [@Arianna\_Gambardella](https://discourse.mc-stan.org/u/Arianna_Gambardella)\
**Replies:** 7\
**Last updated:** [May 15, 2024, 9:35pm UTC](https://discourse.mc-stan.org/t/cmdstan-on-mac/30550 "2024-05-15T21:35:20Z")

</div>

I am trying to run a Stan model on python (using cmdstanpy) on a Mac computer. The error I get is the following: CmdStan’s precompiled header (PCH) files may need to be rebuilt.Please run cmdstanpy.rebuild\_cmdstan(). Wh…

---

## [brms：OpenCL function on MacOS Catalina](https://discourse.mc-stan.org/t/brms-opencl-function-on-macos-catalina/23999)

<div class="topic-metadata">

**Author:** [@Jacob\_stanlearner](https://discourse.mc-stan.org/u/Jacob_stanlearner)\
**Replies:** 2\
**Last updated:** [November 13, 2023, 11:04am UTC](https://discourse.mc-stan.org/t/brms-opencl-function-on-macos-catalina/23999 "2023-11-13T11:04:41Z")

</div>

I had run brms model successfully with OpenCL fucntion on my Windows device. Now, I want to do the similar work on my Mac air laptop. However, When I run the example code as following: library(brms) library(cmdstanr) n…

---

## [GPUs on Mac OSX, Apple M1](https://discourse.mc-stan.org/t/gpus-on-mac-osx-apple-m1/23375)

<div class="topic-metadata">

**Author:** [@Amael](https://discourse.mc-stan.org/u/Amael)\
**Replies:** 6\
**Last updated:** [May 2, 2023, 1:09pm UTC](https://discourse.mc-stan.org/t/gpus-on-mac-osx-apple-m1/23375 "2023-05-02T13:09:36Z")

</div>

Dear Stan community, I am trying to enable GPUs for Stan, but I get the following error for all the chains (only chain 1 reported here): Chain 1 Unrecoverable error evaluating the log probability at the initial value. …

---

## ["error: unknown type name 'Dl\_info'": Another CmdStan installation issue on Mac (Ventura, Intel)](https://discourse.mc-stan.org/t/error-unknown-type-name-dl-info-another-cmdstan-installation-issue-on-mac-ventura-intel/30016)

<div class="topic-metadata">

**Author:** [@cborst](https://discourse.mc-stan.org/u/cborst)\
**Replies:** 0\
**Last updated:** [January 10, 2023, 10:35pm UTC](https://discourse.mc-stan.org/t/error-unknown-type-name-dl-info-another-cmdstan-installation-issue-on-mac-ventura-intel/30016 "2023-01-10T22:35:30Z")

</div>

Hi all, I’m trying to install CmdStan for the first time for a course. I’ve run into a problem and I can’t find anything useful in the documentation, here at discourse.mc-stan.org, or at StackOverflow, and it’s stumped m…

---

## [Problems with migration from Intel to M1 Mac](https://discourse.mc-stan.org/t/problems-with-migration-from-intel-to-m1-mac/29911)

<div class="topic-metadata">

**Author:** [@arya](https://discourse.mc-stan.org/u/arya)\
**Replies:** 3\
**Last updated:** [January 7, 2023, 2:30pm UTC](https://discourse.mc-stan.org/t/problems-with-migration-from-intel-to-m1-mac/29911 "2023-01-07T14:30:08Z")

</div>

I migrated my stuff on my old Intel Mac to a new M1 Mac instead of starting from scratch and I’m starting to think I should’ve just started from scratch. I git cloned a fresh version of cmdstanr, then did a make clean-al…

---

## [Unable to install cmdstanr on Mac ventura M1 MacBook Air](https://discourse.mc-stan.org/t/unable-to-install-cmdstanr-on-mac-ventura-m1-macbook-air/29471)

<div class="topic-metadata">

**Author:** [@akcchoi](https://discourse.mc-stan.org/u/akcchoi)\
**Replies:** 13\
**Last updated:** [November 15, 2022, 9:34am UTC](https://discourse.mc-stan.org/t/unable-to-install-cmdstanr-on-mac-ventura-m1-macbook-air/29471 "2022-11-15T09:34:48Z")

</div>

In RStudio: \> install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) Installing package into ‘/Users/andy/Library/R/arm64/4.2/library’ (as ‘lib’ is unspecified) also installing th…

---

## [1D integrator Stan model very slow](https://discourse.mc-stan.org/t/1d-integrator-stan-model-very-slow/28701)

<div class="topic-metadata">

**Author:** [@pankajb64](https://discourse.mc-stan.org/u/pankajb64)\
**Replies:** 3\
**Last updated:** [September 9, 2022, 5:54pm UTC](https://discourse.mc-stan.org/t/1d-integrator-stan-model-very-slow/28701 "2022-09-09T17:54:30Z")

</div>

Hi, I’m new to Stan and Bayesian Inference in general. I’m running a model on a relatively small dataset - vector of 40 elements and a 40x40 covariance matrix. My model involves doing a 1D integration, though. And its be…

---

## [New computer...Mac or Windows, RStan or CmdStanR?](https://discourse.mc-stan.org/t/new-computer-mac-or-windows-rstan-or-cmdstanr/27660)

<div class="topic-metadata">

**Author:** [@Al\_in\_Sweden](https://discourse.mc-stan.org/u/Al_in_Sweden)\
**Replies:** 23\
**Last updated:** [July 18, 2022, 9:55pm UTC](https://discourse.mc-stan.org/t/new-computer-mac-or-windows-rstan-or-cmdstanr/27660 "2022-07-18T21:55:33Z")

</div>

Hello…I hope this great community can kindly share any advice, tips and personal experiences with me. I have been using an iMac + Stan + RStan + RStudio, and have been delighted with how fantastic it all works…brillian…

---

## [Mac M1 experience with cmdstanR](https://discourse.mc-stan.org/t/mac-m1-experience-with-cmdstanr/28027)

<div class="topic-metadata">

**Author:** [@akcchoi](https://discourse.mc-stan.org/u/akcchoi)\
**Replies:** 4\
**Last updated:** [July 4, 2022, 9:03am UTC](https://discourse.mc-stan.org/t/mac-m1-experience-with-cmdstanr/28027 "2022-07-04T09:03:07Z")

</div>

Hi all, I wonder if any M1 (or M2) user of cmdstanR can share their experiences so far. I am thinking about upgrading my Intel MacBook Pro to M1 but couldn’t quite get my arms around certain issues toolchain / setu…

---

## [Can't open MacOS R toolchain installer under Monterey](https://discourse.mc-stan.org/t/cant-open-macos-r-toolchain-installer-under-monterey/27751)

<div class="topic-metadata">

**Author:** [@wgclark](https://discourse.mc-stan.org/u/wgclark)\
**Replies:** 4\
**Last updated:** [June 16, 2022, 2:03am UTC](https://discourse.mc-stan.org/t/cant-open-macos-r-toolchain-installer-under-monterey/27751 "2022-06-16T02:03:36Z")

</div>

My system adamantly refuses to open the package. Ways to get around the problem under Catalina, given in the instructions, do not work under Monterey. I have Xcode and clang installed already. Do I need to run this insta…

---

## [CmdStan manual - Mac installation](https://discourse.mc-stan.org/t/cmdstan-manual-mac-installation/25703)

<div class="topic-metadata">

**Author:** [@robertgrant](https://discourse.mc-stan.org/u/robertgrant)\
**Replies:** 2\
**Last updated:** [December 15, 2021, 4:22pm UTC](https://discourse.mc-stan.org/t/cmdstan-manual-mac-installation/25703 "2021-12-15T16:22:33Z")

</div>

I spotted this paragraph in the CmdStan manual, version 2.28, at the bottom of page 10: Note MacOS installations may include old version of the g++ compiler which is a version 4.2.1. CmdStan requires g++ at 4.9.3 or l…

---

## [Sampling method taking forever on my MacBook Pro](https://discourse.mc-stan.org/t/sampling-method-taking-forever-on-my-macbook-pro/21681)

<div class="topic-metadata">

**Author:** [@motuchsznajder](https://discourse.mc-stan.org/u/motuchsznajder)\
**Replies:** 3\
**Last updated:** [April 4, 2021, 2:35pm UTC](https://discourse.mc-stan.org/t/sampling-method-taking-forever-on-my-macbook-pro/21681 "2021-04-04T14:35:17Z")

</div>

I’m following the introductory pystan video on Youtube, and the fitting process is taking forever. I don’t think it should take more than a couple of seconds since the example given on the video is too simple. I’m using…

---

## [R goes really slow implemented Rstan. Don't know what happened](https://discourse.mc-stan.org/t/r-goes-really-slow-implemented-rstan-dont-know-what-happened/19952)

<div class="topic-metadata">

**Author:** [@Yangkang](https://discourse.mc-stan.org/u/Yangkang)\
**Replies:** 8\
**Last updated:** [January 3, 2021, 12:40pm UTC](https://discourse.mc-stan.org/t/r-goes-really-slow-implemented-rstan-dont-know-what-happened/19952 "2021-01-03T12:40:12Z")

</div>

Hi everyone, My Rstudio gets stuck once the Rstan is implemented, for example the “Check” button on the Rstan interface takes forever to run. The “rstan::” function takes forever too. Also, after I library(rstan), “::” …

---

## [Can't get rstan to install on Mac OS Mojave](https://discourse.mc-stan.org/t/cant-get-rstan-to-install-on-mac-os-mojave/18478)

<div class="topic-metadata">

**Author:** [@ctesta01](https://discourse.mc-stan.org/u/ctesta01)\
**Replies:** 4\
**Last updated:** [October 8, 2020, 5:20pm UTC](https://discourse.mc-stan.org/t/cant-get-rstan-to-install-on-mac-os-mojave/18478 "2020-10-08T17:20:38Z")

</div>

I have been having a terrible time getting rstan installed and setup. The short of it is that if I install from binary, I get errors, and I can’t seem to compile from the source code. System Version Numbers I’m working…

---

## [Compilation time on Mac](https://discourse.mc-stan.org/t/compilation-time-on-mac/7232)

<div class="topic-metadata">

**Author:** [@Jerzy\_Baranowski](https://discourse.mc-stan.org/u/Jerzy_Baranowski)\
**Replies:** 1\
**Last updated:** [January 10, 2019, 1:32pm UTC](https://discourse.mc-stan.org/t/compilation-time-on-mac/7232 "2019-01-10T13:32:39Z")

</div>

Operating System: macOS Mojave Interface Version: RStan Compiler/Toolkit: Xcode Hello I have a problem with compilation of even the simplest models. I started to use stan using ‘rethinking’ package, but the same situa…
