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

view this post on Zulip Jake Wood (May 29 2026 at 13:30):

Hi so I'm on MacOs Tahoe (intel) and the install instructions don't work for me. :sweat_smile:
I downloaded the nightly binary and added the directory to my path. When I run roc version I get

roc version
dyld[30101]: Library not loaded: /usr/local/opt/z3/lib/libz3.4.13.dylib
  Referenced from: <A0597734-EDA3-388D-870E-C831508B0AE8> /Users/jakew/Documents/work/roc/roc_nightly-macos_x86_64-2025-02-04-59ff9bd/roc
  Reason: tried: '/usr/local/opt/z3/lib/libz3.4.13.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/z3/lib/libz3.4.13.dylib' (no such file), '/usr/local/opt/z3/lib/libz3.4.13.dylib' (no such file), '/usr/local/lib/libz3.4.13.dylib' (no such file), '/usr/lib/libz3.4.13.dylib' (no such file, not in dyld cache), '/usr/local/Cellar/z3/4.15.4/lib/libz3.4.13.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/z3/4.15.4/lib/libz3.4.13.dylib' (no such file), '/usr/local/Cellar/z3/4.15.4/lib/libz3.4.13.dylib' (no such file), '/usr/local/lib/libz3.4.13.dylib' (no such file), '/usr/lib/libz3.4.13.dylib' (no such file, not in dyld cache)
[1]    30101 abort      roc version

which makes sense b/c I have a different version of libz3:

ls -1 /usr/local/opt/z3/lib/
libz3.4.15.4.0.dylib
libz3.4.15.dylib
libz3.dylib

doing

brew install z3 zstd

doesn't fix it.

view this post on Zulip Jake Wood (May 29 2026 at 13:37):

oh huh. user error I think? I had an older version of roc that was getting found first and was failing so disregard the above. my new issue is that macos won't let Roc run b/c it thinks it malware... :thinking:
dangerously telling macos that everything is fine :sweat_smile:

view this post on Zulip Anton (May 29 2026 at 13:56):

Hi @Jake Wood

my new issue is that macos won't let Roc run b/c it thinks it malware...

Using the install script should avoid that.

view this post on Zulip Anton (May 29 2026 at 13:57):

https://roc-lang.org/install_roc.sh

view this post on Zulip Anton (May 29 2026 at 14:00):

I did notice an error with the install script that I will fix now:

sh: line 136: syntax error near unexpected token `else'

view this post on Zulip Anton (May 29 2026 at 14:30):

By the way, the error only happens when you do not pipe to sh.


Last updated: Jun 16 2026 at 16:19 UTC