Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28795 Discussions

Getting error for library not found: ld: library not found for -lSystem

ManishM
Novice
5,897 Views

I'm trying to compile a fortran code but it's throwing an error for library not found for -lSystem. I have installed the basic and hpc kit on my Mac Big Sur. Couldn't locate this library in the oneapi package. It is trying to find the said library in the directory:

-I/opt/intel/oneapi/compiler/latest/mac/compiler/include

 

Any help would be appreciated

0 Kudos
1 Solution
mecej4
Honored Contributor III
5,804 Views

See if this solves the problem.

View solution in original post

0 Kudos
3 Replies
mecej4
Honored Contributor III
5,805 Views

See if this solves the problem.

0 Kudos
ManishM
Novice
5,747 Views

Yeah, it solved the issue. I didn't know the library path is changed to default path rather than in oneapi

0 Kudos
volkerblum
Beginner
5,708 Views

I had the same problem upon a fresh install of Big Sur 11.4 and Intel Fortran classic 2021.3

The solution referenced above does solve the issue here as well. However, it's not an entirely obvious step. Is this something that could be checked during installation?

Anyway, I am grateful that the issue was documented here.

0 Kudos
Reply