codon icon indicating copy to clipboard operation
codon copied to clipboard

mac m1 "Library not loaded"

Open yeba opened this issue 2 years ago • 1 comments

install via bash, run

codon run test.py

get error

dyld[67860]: Library not loaded: '/opt/homebrew/opt/zstd/lib/libzstd.1.dylib'
  Referenced from: '/Users/xxx/.codon/lib/codon/libcodonc.dylib'
  Reason: tried: '/opt/homebrew/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)
zsh: abort test.py

yeba avatar Dec 12 '22 07:12 yeba

Thanks for pointing this out -- the pre-built binary shouldn't be linked to that library. I'll check this for the next release, but in the meantime brew install zstd might resolve the issue.

arshajii avatar Dec 12 '22 14:12 arshajii

Should be fixed in v0.15.2 release!

arshajii avatar Dec 13 '22 04:12 arshajii

brew install zstd works! By the way, the project is marvelous, I'm waiting for v1.0!

yeba avatar Dec 13 '22 08:12 yeba

I've just tried that on my Intel Mac and still getting this error:

dyld[53257]: Library not loaded: /usr/local/opt/zstd/lib/libzstd.1.dylib
  Referenced from: <35902E26-B869-3DC7-B6B6-33EC07E5D999> /Users/inikolaev/.codon/lib/codon/libcodonc.dylib
  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)

Has this been fixed yet?

inikolaev avatar Dec 28 '22 13:12 inikolaev

I tried this method on my Intel mac, got another error:

zsh: bus error codon

how can i fix it?

LowPower-Center avatar Mar 20 '23 06:03 LowPower-Center