macOS下fortran编译报错二

macOS下fortran编译报错二 ld: library not found for

编译时提示报错如下:
ld: library not found for -lSystem

解决方案:
终端中运行
export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
这样就指定了运行library 了。

备注下:系统为AMD Ryzen 的hackintosh, MacOS big sur 11.6
编译器为 gcc

参考以下网页
https://stackoverflow.com/questions/56156520/gfortran-error-ld-library-not-found-for-lsystem-when-trying-to-compile

发表回复