Sfoglia il codice sorgente

Fix macOS build instructions for alternative Homebrew locations

Adam Pritchard 9 anni fa
parent
commit
10b906f985
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      README.md

+ 7 - 2
README.md

@@ -48,9 +48,14 @@ Client Setup
 
 1. You must have [Homebrew](http://brew.sh/) installed.
 2. `brew install openssl pkg-config`
-3. Set `PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig` when building. This can be easily done on the build command line like so:
+3. Find out where Homebrew put the `pkgconfig` files for OpenSSL -- the location depends on your Homebrew installation. Run this command:
    ```
-   PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig go build
+   brew info openssl
+   ```
+   Make note of the "build variable" path for `PKG_CONFIG_PATH`.
+4. Set `PKG_CONFIG_PATH=<path discovered above>` when building. This can be easily done on the build command line like so:
+   ```
+   PKG_CONFIG_PATH=<path discovered above> go build
    ```
 
 ### Configure