roc/getting_started/macos_x86.md

26 lines
860 B
Markdown
Raw Normal View History

0. Download the latest nightly from the assets [here](https://github.com/roc-lang/roc/releases).
0. 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
```
0. Untar the archive:
```
roc_nightly-macos_x86_64-<VERSION>.tar.gz
```
0. 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
```
0. 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
```
2022-06-29 12:35:13 +03:00
0. See [here](../README.md#examples) for the other examples.