mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
1020 B
1020 B
Roc installation guide for x86 macOS systems
How to install Roc
-
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-macos_x86_64-<VERSION>.tar.gz
-
Untar the archive:
roc_nightly-macos_x86_64-<VERSION>.tar.gz
How to install examples/
dependencies
-
Install the Rust compiler, for apps with Rust-based platforms:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Install the Zig compiler, for apps with Zig-based platforms:
brew install zig
-
Run examples:
# Note: If you installed rust in this terminal session, you'll need to open a new one first! ./roc examples/platform-switching/rocLovesRust.roc ./roc examples/platform-switching/rocLovesZig.roc ./roc examples/platform-switching/rocLovesC.roc