arguing-robots icon indicating copy to clipboard operation
arguing-robots copied to clipboard

dyld: Library not loaded

Open crstin opened this issue 8 years ago • 3 comments

Mine's not working

./arguing-robots examples/montreal-in-the-winter.txt
dyld: Library not loaded: /usr/local/opt/bdw-gc/lib/libgc.1.dylib
  Referenced from: /Users/user/Coding/Bash/arguing-robots/./arguing-robots
  Reason: image not found
[1]    50604 abort      ./arguing-robots examples/montreal-in-the-winter.txt

crstin avatar Feb 18 '17 14:02 crstin

It seems like the Crystal compiler sometimes has problems linking dynamic libraries, as this issue suggests. I'll try recompiling it by linking the dylib you're missing.

If you wanna compile the program yourself in the meanwhile, just install crystall and run crystal build arguing-robots.cr --release

christophemarois avatar Feb 18 '17 18:02 christophemarois

Thanks! I'll wait for your recompile. brew install crystal-lang forces me to install llvm keg as a dep. That's too much for me to accept :) No crystal for me.

crstin avatar Feb 18 '17 22:02 crstin

I'm still trying to understand how to link the .dylib. However the guys in #2 seem to have found a solution!

christophemarois avatar Feb 19 '17 21:02 christophemarois