mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-04 00:55:00 +00:00
940 B
940 B
- Download the latest nightly from the assets here.
- To prevent "roc can't be opened because Apple can't check it...":
xattr -d com.apple.quarantine roc_nightly-darwin_apple_silicon-<VERSION>.tar.gz - Untar the archive:
roc_nightly-darwin_apple_silicon-<VERSION>.tar.gz - To be able to run examples:
- for the Rust example:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh- for the zig example:
brew install zig - Run examples with:
# Rust. If you installed rust in this terminal you'll need to open a new one first! ./roc examples/hello-world/rust-platform/helloRust.roc # Zig ./roc examples/hello-world/zig-platform/helloZig.roc # C ./roc examples/hello-world/c-platform/helloC.roc - See here for the other examples.