image.png
# general
q
image.png
We are also getting this error too:
Copy code
2024/06/20 13:58:26 [INFO] package libpact_ffi not found
2024/06/20 13:58:26 [INFO] downloading library from <https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v0.4.16/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz> to /usr/local/lib/libpact_ffi.dylib
2024/06/20 13:58:26 [ERROR] Your Pact library installation is out of date and we were unable to download a newer one for you: failed to create /usr/local/lib; mkdir /usr/local/lib: permission denied
Any suggestions would be greatly appreciated!
b
Hey @Quinton Miller, did you also post this in #C9UTHTFFB ?
☝️ 1
y
I assume this isn’t a new error on an existing installation? The library by default is installed on macos to
/usr/local/lib
which is in the users lookup path for dynamic libs, but is owned by root (so you require running
pact-go -l DEBUG install
with
sudo
alternatively you can configure where it downloads to with `PACT_GO_LIB_DOWNLOAD_PATH`but the only other alternative place is
/tmp
https://github.com/pact-foundation/pact-go/blob/4c2079fee11a7f484b3a5ec23cea39e6d9283c50/internal/native/lib.go#L5-L6 which is user writable so you can avoid sudo if you need to
q
Thanks, we don't have sudo available for this download so will try the second option.