-
How to address ‘..appy libs required to decompress .
Posted by voiddump on January 16, 2024 at 12:00 amHi,
I tried to load data from a hardware, got an error message
How can I solve this? I’m running on a Macbook Pro (Version 13.4.1).
voiddump replied 8 months, 2 weeks ago 2 Members · 5 Replies -
5 Replies
-
Have you tried installing libsnappy?
File compression | Database | kdb+ and q documentation – Kdb+ and q documentation (kx.com)
-
Uhm…Sorry I’m new to Github. I followed the links but I’m not quite sure what to do next. Do I choose one of these to download?
-
-
Thanks for this! I’ve successfully installed MacPorts and snappy, however it still shows this error message. I suppose the path of Snappy might be wrong or unaccessible by KDB+. Is it so? How can I change the path?
-
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.
Log in to reply.