update: add env variable info for Apple Silicon

-Updated the readme with env variables for Apple Silicon based mac
as the path for Brew installed apps is different there.
This commit is contained in:
David 2024-09-03 21:00:59 +01:00 committed by GitHub
parent 1ef492449d
commit 5da056b87a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,6 +115,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: 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 ```bash
# Golang environment variables # Golang environment variables
export GOROOT=/usr/local/go export GOROOT=/usr/local/go
@ -122,6 +123,14 @@ export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH: 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 ### 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. 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.