KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ How to address ‘..appy libs required to decompress .

  • How to address ‘..appy libs required to decompress .

    Posted by voiddump on January 16, 2024 at 12:00 am

    Hi,

    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 9 months, 2 weeks ago 2 Members · 5 Replies
  • 5 Replies
  • gyorokpeter-kx

    Member
    January 16, 2024 at 12:00 am
  • voiddump

    Member
    January 16, 2024 at 12:00 am

    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?

  • gyorokpeter-kx

    Member
    January 16, 2024 at 12:00 am

    There is an infobox below the table:

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

    # install with MacPorts sudo port install snappy +universal export LD_LIBRARY_PATH=/opt/local/lib
  • voiddump

    Member
    January 17, 2024 at 12:00 am

    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?

     

  • voiddump

    Member
    January 17, 2024 at 12:00 am

    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/

    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.