Commit 3b2f6182 authored by charlie ablett's avatar charlie ablett 🛠

Expand explanation and add temporary fix

parent 181685d8
......@@ -663,10 +663,18 @@ pkg-config: exit status 1
make: *** [build] Error 2
```
This indicates that Go is trying to link (unsuccessfully) to brew's `icu4c`.
Find the directory where `icu-i18n.pc` is. On macOS it is generally in `/usr/local/opt/icu4c/lib/pkgconfig`.
Set the `PKG_CONFIG_PATH` environment variable to that directory.
You'll need to add that directory to the `PKG_CONFIG_PATH` environment variable.
To fix this now, run the following on the command line:
```sh
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:$PKG_CONFIG_PATH"
```
Add the following line to `~/.bash_profile`:
To fix this for the future, add the following line to `~/.bash_profile` (or `~/.zshrc`):
`export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:$PKG_CONFIG_PATH"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment