input the follow cmd in terminal
➜ lanes-master sudo find / -name 'libgcc_ S '
to check if there is the libgcc_s.10.4 library (different versions of GCC installed or other associated versions may cause this library does not exist)
(1) If you have this library(if it's a Alias, please see the original), make a Alias, directly link to /usr/local/lib/ with the name libgcc_s.10.4.dylib (it may solve the problem, but in my case, this file doesn't exist at all)
(2) Without this library, but I found it in /usr/local/ Cellar/gcc@8/8.3.0/lib/gcc/8/libgcc_s.1.dylib,
then I go directly to /usr/local/lib/ to generate a libgcc_s.1.dylib soft connection(Alias) named libgccs.10.4.dylib
Command:
➜ lanes-master cd /usr/local/lib/
➜ lib ln -s /usr/local/Cellar/ gcc@8/8.3.0/lib/gcc/8/libgcc s.1.dylib libgcc_ s.10.5.dylib
Check the compilation again and solve the problem.!!!!
When I install lanes manually or with luarocks, the terminal always holds this error:
➜ lanes-master make install cd src && /Library/Developer/CommandLineTools/usr/bin/make LUA=/usr/local/bin/lua5.1 mkdir -p lanes MACOSX_DEPLOYMENT_TARGET=10.3 gcc -bundle -undefined dynamic_lookup lanes.o cancel.o compat.o threading.o tools.o linda.o deep.o keeper.o universe.o -L/usr/local/lib -lluajit-5.1 -L/usr/local/lib -lluajit-5.1 -o lanes/core.so ld: library not found for -lgcc_s.10.4 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [lanes/core.so] Error 1 make: [src/lanes/core.so] Error 2