I need to upgrade my OS from Catalina as Apple will stop security updates probably this year. I remember at the time getting RStan to run on Catalina took a while to figure out. What is the latest OS that RStan runs on easily, are any of them fine?

I use Monterey 12.6 and it works fine :)

1 Like

I am running rstan on Ventura (13.0) on the M1 chips. It was a little weird to figure out how to get it running.

Downloaded Xcode from the App store.

Open up Xcode and select the Install option (this was not clear). Like really, I have to install twice eyeroll

Go to the Apple Developer website and download the Command Line Tools .dmg . For some reason the auto find and update is broken at the moment. If you type make or git in the Terminal it will helpfully tell you it’s installing these tools but utterly fail to install them.

Check to make sure Xcode is seeing your Command Line Tools. It’s in Xcode either under Preferences → Locations or on my version Settings → Locations.

Install the new version of R and RStudio. You may need to install rlang and processx manually.

Test run with the 8schools model and hope nothing else is broken.

I am going to mess around with getting CmdStan up and running today.

1 Like

Didn’t xcode-select --install work in the terminal?

Good to see that it works Okish :)

The xcode select command in the terminal fails on my end. It helpful replies that everything is already installed and to use the software updater. Which does nothing laugh-cry .

Hey @Ara_Winter ,

Have you had an luck with CmdStan in Ventura?

I also updated macOS and cmdstanr::install_cmdstan() produces an error at xattr -d bin/stanc. Seems like that “file” does not exist in that location.

I’ll keep troubleshooting, but wondered if there were others who had already waded through this problem successfully. I’ll report back with any progress if that’s needed.

I grabbed the arm build (edit: Apple Silicon, M1 ) from here Releases · stan-dev/cmdstan · GitHub and it runs.
I did the following

  1. Make - which returned no errors
  2. make examples/bernoulli/bernoulli which throws a bunch of errors around sprintf. Some dire security warnings.
  3. examples/bernoulli/bernoulli sample data file=examples/bernoulli/ , runs the example model. Looks like it sampled correctly.

I have the cmd folder in my Documents folder, not sure if it matters where it lives. Let me try building my own model and see what happens.

I upgraded to Ventura. xcode-select --install simply verified I had everything installed. All seems to work without a problem (incl. cmdstanr and cmdstan).

1 Like

@torkar , are you using Apple or Intel silicon?

I have an Intel-based macOS machine and have yet to resolve a path forward with cmdstan/cmdstanr. I’ve managed to replicate this issue on two different computers (both Intel macOS). From what I’ve been able to gather, the xattr -d bin/stanc is attempting to change the attributes/metadata of the Stan compiler, so something is different about the way things get unpacked from GitHub by cmdstanr::install_cmdstan() that is unique to Intel-based macOS.

I use Apple silicon :)

Alright, I’ve created a separate topic to address my issue. Thanks all!

1 Like