Home › Forums › kdb+ › How to address ‘..appy libs required to decompress . › Re: How to address ‘..appy libs required to decompress .
-
Thank you so much! I’ve addressed the problem.
After continuous chats with GPT, I finally put Snappy in the right place. If anyone also encounters this problem, this is the solution given by GPT:
1. **Verify Library Path:**
Ensure that the directory containing the `libsnappy.dylib` library is in the system’s library path. You can add the directory to the library path by setting the `DYLD_LIBRARY_PATH` environment variable in your shell profile or script.export?DYLD_LIBRARY_PATH=/path/to/snappy/lib:$DYLD_LIBRARY_PATH2.**Check Your Snappy Place**:
Type in the following code in the terminal:
”’
port contents snappy
”’
Mine returns:
Port snappy contains:
/opt/local/include/snappy-c.h
/opt/local/include/snappy-sinksource.h
/opt/local/include/snappy-stubs-public.h
/opt/local/include/snappy.h
/opt/local/lib/cmake/Snappy/SnappyConfig.cmake
/opt/local/lib/cmake/Snappy/SnappyConfigVersion.cmake
/opt/local/lib/cmake/Snappy/SnappyTargets-macports.cmake
/opt/local/lib/cmake/Snappy/SnappyTargets.cmake
/opt/local/lib/libsnappy.1.1.10.dylib
/opt/local/lib/libsnappy.1.dylib
/opt/local/lib/libsnappy.dylib
So the path is /opt/local/lib/
3. **Restart KDB+:**
Restart your KDB+ session to apply the changes. Type in following codes:”’
cd /your/path/to/the/installation/of/kdb
spctl –add q/m64/q
xattr -d com.apple.quarantine q/m64/q
DYLD_LIBRARY_PATH=/opt/local/lib ./q/m64/q”’
You can change the /opt/local/lib in the ‘DYLD_LIBRARY_PATH=’ to your path of the Snappy.
This should solve the problem.