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.
Can you post the path to the Roc executable?
And then post the part of your PATH that would point to it?
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?
We are quite a ways from that
But I agree with we should have a script to install to some standard location
Probably $HOME/.local/bin
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)?
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
Anthony's message is correct but Roc is always compiled to assembly, not interpreted
That's a good clarification Anton
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.
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:
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.
https://roc-lang.org/install_roc.sh
I did notice an error with the install script that I will fix now:
sh: line 136: syntax error near unexpected token `else'
By the way, the error only happens when you do not pipe to sh.
Last updated: Jun 16 2026 at 16:19 UTC