0

I'm trying to install a package through ifort on Mac since it requires ifort to compile and run the code and I am and getting error

ld: library not found for -lSystem 

I don't know if oneAPI comes with that library.

ifort -O3 -warn all -fpp -free -assume byterecl -heap-arrays -nogen-interface -static-intel  /opt/intel/oneapi/compiler/latest/mac/compiler/include generate_inpmat.F90 -o generate_inpmat
manish
  • 43
  • 2
  • 9

1 Answers1

0

I corrected this error by pointing the correct library path. The correct path is at

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib

In place of

/opt/intel/oneapi/compiler/latest/mac/compiler/include
manish
  • 43
  • 2
  • 9