How to address '..appy libs required to decompress .

Hi,

I tried to load data from a hardware, and the error message was: 

How can I solve this? I’m running on a Macbook Pro (Version 13.4.1).

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?

There is an infobox below the table:

To install Snappy or Lz4 on macOS, use a package manager such as Homebrew or MacPorts:

<button class='"md-clipboard' md-icon style='"box-sizing:' inherit transparent background: border: font-family: font-size: margin: padding: border-radius: color: var cursor: pointer height: outline: none outline-offset: position: absolute right: top: transition: color ease width: z-index: title='"Copy' to clipboard data-clipboard-target='"#__code_10' code></button># install with MacPorts sudo port install snappy +universal export LD_LIBRARY_PATH=/opt/local/lib

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_PATH

 

2.**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/

  1. **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.