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

Installing FORTRAN on MacBookPro with M1 chips

Robert_Gamache
Beginner
3,886 Views

I am trying to get Intel 2022 FORTRAN running on a MacBook Pro that has the M1 chip.  The instructions say before you can use FORTRAN you must set the environment variables using 

source opt/intel/compilers_and_libraries_2021.<update number>.<package number>/Mac/setvars.sh
However, the folder structure for 2022 FORTRAN is different.  setvars.sh is in 

opt/intel/oneapi/compiler/2022.1.0/mac/bin/setvars.sh and when I execute it I get the message "ERROR: No env scripts found: No "env/vars.sh" scripts to process."

Any suggestions?

0 Kudos
4 Replies
Devorah_H_Intel
Moderator
3,864 Views

Do you have setvars.sh listed under opt/intel/oneapi ?

0 Kudos
Robert_Gamache
Beginner
3,763 Views

Sorry for the long delay I was abroad working in London. 

Yes, I also have it in opt/intel/oneapi/compiler/2022.1.0/mac/bin/.  I tried source opt/intel/oneapi/setvars.sh and it seemed to work.  I made the hello.F90 program, saved it in me/Documents and when I compiled (ifort hello.F90 -o hello I get the following error. 

ld: library not found for -lSystem

0 Kudos
Barbara_P_Intel
Moderator
3,859 Views

Please note that Intel's macOS* support is for Mac* computers with Intel® Processors. See the various System Requirements documents.

 

0 Kudos
Barbara_P_Intel
Moderator
3,745 Views

Maybe this thread will help you with the -lSystem.

0 Kudos
Reply