Skip to content

Commit

Permalink
Update MacOS build dependancies (#4250)
Browse files Browse the repository at this point in the history
* Always use most recent brew libs
* Update the docs to reflect latest macos libsodium
  • Loading branch information
dincho committed Jan 18, 2024
1 parent 4b03141 commit 4842946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .circleci/config/jobs/@packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ macos-tarball:
xcode: "13.4.1" # macOS 12.3.1
resource_class: macos.x86.medium.gen2
working_directory: /Users/distiller/aeternity
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- fixed_checkout
- when:
Expand Down
6 changes: 3 additions & 3 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The release binaries are published on [GitHub][releases] and are tested on the f

Package dependencies are:

* [Libsodium](https://download.libsodium.org/doc/) v1.0.16
* [Libsodium](https://download.libsodium.org/doc/) v1.0.16/v1.0.19
* [Openssl](https://www.openssl.org) v1.1

#### Ubuntu dependencies
Expand All @@ -89,13 +89,13 @@ brew install openssl libsodium
The macOS package has:

* A hard dependency on OpenSSL v1.1 installed with [Homebrew](https://brew.sh/) in its default path `/usr/local/opt/openssl/lib/libcrypto.1.1.dylib`;
* A hard dependency on libsodium v1.0.16 installed with [Homebrew](https://brew.sh/) in its default path `/usr/local/opt/libsodium/lib/libsodium.23.dylib`.
* A hard dependency on libsodium v1.0.19 installed with [Homebrew](https://brew.sh/) in its default path `/usr/local/opt/libsodium/lib/libsodium.26.dylib`.

In case you have installed either of them in a non-default path, you could use symlink(s) to work around the issue.
You can create those symlinks by running the following commands:
```bash
ln -s "$(brew --prefix openssl)"/lib/libcrypto.1.1.dylib /usr/local/opt/openssl/lib/libcrypto.1.1.dylib
ln -s "$(brew --prefix libsodium)"/lib/libsodium.23.dylib /usr/local/opt/libsodium/lib/libsodium.23.dylib
ln -s "$(brew --prefix libsodium)"/lib/libsodium.26.dylib /usr/local/opt/libsodium/lib/libsodium.26.dylib
```

### Deploy node
Expand Down

0 comments on commit 4842946

Please sign in to comment.