Build and install Elektra
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=/tmp/Elektra ..
ninja install
Add the binary directory of Elektra to PATH
set -x PATH $PATH /tmp/Elektra/bin
Run kdb
kdb run_all
The command kdb executes various tests
The command prints the error messages below.
kdb: error while loading shared libraries: libelektratools.so.2: cannot open shared object file: No such file or directory
dyld: Library not loaded: @rpath/libelektratools.2.dylib
Referenced from: /tmp/Elektra/bin/kdb
Reason: image not found
fish: 'kdb run_all' terminated by signal SIGABRT (Abort)
Thank you for reporting the problem!
Seems like a regular library location problem. (libelektratools has no special treatment, it is linked against kdb in the regular way. See ldd.) Libraries use LD_LIBRARY_PATH (might be different on Mac OS X) and not PATH. Please try to set this variable additionally.
Alternatively, you can try to follow the Troubleshooting guide in doc/INSTALL.md for a permanent fix.
Please report if this did not help.
Setting LD_LIBRARY_PATH seems to solve the problem. Thank you!