-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error installing rstan on macOS Ventura 13.4 with arm64 architecture: Need assistance with C++ compilation #1077
Comments
If you only need to run Stan models and don't need to build a binary package or access log densities and gradients, you might want to try cmdstanr. It's easier to install and more up-to-date with Stan. RStan is being updated and the plan is to bring the CRAN version up to date in the immediate future, but it's a painstaking process with all the dependent packages and CRAN rules. |
Hi @bob-carpenter
|
I have no idea what's going on here, but it looks like a problem with OpenCL, which is what we use for GPU support. I'm pinging a few people who may know what's going on: @jgabry @SteveBronder @bgoodri. |
Still struggling with this issue. Wonder if anyone mentioned here can help . |
HI @truenomad, I might have encountered a similar issue in the recent past, which was solved here stan-dev/cmdstanr#790. Try and follow the conversation and see if it helps. |
This solves it !! Thank you so much. |
@truenomad Glad it helped. |
Summary:
I have been attempting to install rstan on macOS Ventura 13.4 with arm64 architecture, following the guide provided in the official rstan GitHub repository (https://github.com/stan-dev/rstan/wiki/Installing-RStan-from-Source#mac). My system has Xcode and command line tools version 14.3.1, as well as Clang version 14.0.3.
I suspect that the error is related to the C++ code that rstan attempts to compile, but I am uncertain about the appropriate steps to take from here. I have tried various solutions suggested in Stack Overflow threads without any success. Some of the threads I have explored include:
https://apple.stackexchange.com/questions/458062/unable-to-find-include-file-on-newly-updated-macosc-c
https://stackoverflow.com/questions/75921280/updating-to-macos-13-3-broke-compiling-cpp
Reproducible Steps:
Here is the code I have used for installation:
install.packages("rstan", type = "source”)
Unfortunately, the package does not download successfully and produces the following error:
RStan Version: 2.21.8
R Version: 4.3.1
The version of R you are running (e.g., from
R.version.string
)Operating System: M2 Mac with macOS Ventura 13.4 with arm64
R session Info:
The text was updated successfully, but these errors were encountered: