Getting lkb_fos to work on Apple silicon Mac

Hi,
I try to get the LKB to work under the MacOS. I have a new processor Arm64. I installed xquartz and zstd via homebrew but the lkb does not start.

It says:

dyld[2851]: Library not loaded: /usr/local/opt/zstd/lib/libzstd.1.dylib
Referenced from: /Users/stefan/Lisp/delphin-2025/lkb_fos/lkb.darwin_x86_64
Reason: tried: ‘/usr/local/opt/zstd/lib/libzstd.1.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/zstd/lib/libzstd.1.dylib’ (no such file), ‘/usr/local/opt/zstd/lib/libzstd.1.dylib’ (no such file), ‘/usr/local/lib/libzstd.1.dylib’ (no such file), ‘/usr/lib/libzstd.1.dylib’ (no such file, not in dyld cache)

I even put a symbolic link from the brew zstd lib to cannonical palces.

Thanks!

OK. In the dot.emacs file it has to be written:

((string-match “darwin” system-configuration) “darwin_arm64”)

Otherwise it loads the x86 binary and this is incompatible with arm64.

LKB is running now but worries about my .tsdbrc. But after moving this out of the way, I have an LKB top \o/.

Thanks for reporting these issues @Stefan

MacOS versions of LKB FOS might well complain about things they find in a .tsdbrc file, since these versions are built without any of the [incr tsdb()] graphical interface code. Your solution of just moving the file out the way is very reasonable.

Your fix to dot.emacs will work fine if your only Mac has an Apple silicon CPU, but here’s a more comprehensive fix:

      (cond
        ((string-match "x86_64-apple-darwin" system-configuration) "darwin_x86_64")
        ((string-match "aarch64-apple-darwin" system-configuration) "darwin_arm64")
        ((string-match "x86_64-pc-linux" system-configuration) "linux_x86_64")
        (t (error "Unrecognised system configuration")))))

This will be in the next release of LKB FOS.

1 Like