From db2a4073c55bd1ae779b31382e634ba42f21d0ef Mon Sep 17 00:00:00 2001 From: Marco Hoyer Date: Thu, 16 Jan 2014 21:07:06 +0100 Subject: [PATCH] describe configuration of libsodium path after failing the installation with described error, I needed some time to realize that there might be a problem with the custom path of libsodium installed by homebrew, needing manual configuration. Hope this saves some time for somebody. --- INSTALL.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 81db3a45..82f5ef97 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -112,6 +112,21 @@ autoreconf -i make make install ``` + +If execution fails with errors like "dyld: Library not loaded: /opt/tox-im/lib/libtoxcore.0.dylib", you may need to specify libsodium path: + +Determine pathes: +``` +brew list libsodium +``` + +Configure include and lib folder and build again: +```bash +./configure--with-libsodium-headers=/usr/local/Cellar/libsodium/0.4.5/include/ --with-libsodium-libs=/usr/local/Cellar/libsodium/0.4.5/lib/ +make +make install +``` + Advance configure options: - --prefix=/where/to/install - --with-libsodium-headers=/path/to/libsodium/include/