Stream: beginners

Topic: Issues installing Roc on Mac


view this post on Zulip Charlzz (Dec 26 2024 at 15:49):

I tried following the steps to install Roc here:

https://www.roc-lang.org/install/macos_apple_silicon.

When I tried typing "roc version", it couldn't find roc at all.

Any suggestions on how to proceed? I can provide more details if someone has ideas on what could have gone wrong.

view this post on Zulip Sam Mohr (Dec 26 2024 at 15:53):

Can you post the path to the Roc executable?

view this post on Zulip Sam Mohr (Dec 26 2024 at 15:53):

And then post the part of your PATH that would point to it?

view this post on Zulip Charlzz (Dec 26 2024 at 17:54):

OK I realized I thought roc would be installed in a standard location rather than in the directory that the gz file expanded to. I manually added that path and had to brew install one other package for some library that was needed. I assume, at some point, it would be brew install roc, but we're not there yet?

view this post on Zulip Anthony Bullard (Dec 26 2024 at 18:16):

We are quite a ways from that

view this post on Zulip Anthony Bullard (Dec 26 2024 at 18:16):

But I agree with we should have a script to install to some standard location

view this post on Zulip Anthony Bullard (Dec 26 2024 at 18:18):

Probably $HOME/.local/bin

view this post on Zulip Charlzz (Dec 26 2024 at 18:21):

All is good though. I was briefly looking at Gleam, but unlike Python, it had a bit of scaffolding even for a simple Hello, World program. It's nice to write short programs without needing extra directories. For a web setup, fine. It looks like Roc can be compiled and presumably run in an interpreted mode (like Python by default)?

view this post on Zulip Anthony Bullard (Dec 26 2024 at 18:23):

In a way yes. A roc file can just be run and built. It can even be run as a script with the appropriate shebang

view this post on Zulip Anton (Dec 27 2024 at 14:56):

Anthony's message is correct but Roc is always compiled to assembly, not interpreted

view this post on Zulip Anthony Bullard (Dec 27 2024 at 15:00):

That's a good clarification Anton


Last updated: Jul 06 2025 at 12:14 UTC