Merge pull request #913 from verebes1/patch-1

update: add  env variable info for Apple Silicon
This commit is contained in:
Daniel Miessler 2024-09-07 17:00:38 -07:00 committed by GitHub
commit 0608e65d6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,6 +123,7 @@ fabric --setup
If everything works you are good to go, but you may need to set some environment variables in your `~/.bashrc` or `~/.zshrc` file. Here is an example of what you can add:
For Intel based macs
```bash
# Golang environment variables
export GOROOT=/usr/local/go
@ -132,6 +133,14 @@ export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
```
for Apple Silicon based macs
```bash
# Golang environment variables
export GOROOT=/opt/homebrew/bin/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH:
```
### Migration
If you have the Legacy (Python) version installed and want to migrate to the Go version, here's how you do it. It's basically two steps: 1) uninstall the Python version, and 2) install the Go version.