Skip to content

Commit

Permalink
Improve Build Nitro Locally page
Browse files Browse the repository at this point in the history
- Remove gvm from brew install.
- Set environment variables for brew LLVM.
- Mention MacOS warnings.
  • Loading branch information
gligneul committed May 31, 2024
1 parent db81067 commit 0675317
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion arbitrum-docs/run-arbitrum-node/nitro/01-build-nitro-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zprofile && source ~/.zprofile
Install essentials:

```bash
brew install git curl make cmake npm go gvm golangci-lint wabt llvm gotestsum
brew install git curl make cmake npm go golangci-lint wabt llvm gotestsum
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
echo 'export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"' >> ~/.zshrc
echo 'export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"' >> ~/.zshrc
npm install --global yarn
sudo mkdir -p /usr/local/bin
sudo ln -s /opt/homebrew/opt/llvm/bin/wasm-ld /usr/local/bin/wasm-ld
Expand Down Expand Up @@ -183,6 +186,16 @@ foundryup
make
```

:::info

In MacOS with Apple Silicon, warnings like the following might appear but they will not hinder the compilation process.

```
ld: warning: object file was built for newer 'macOS' version (14.4) than being linked (14.0)
```

:::

### Step 9. Produce binaries

```bash
Expand Down

0 comments on commit 0675317

Please sign in to comment.