Matlab does not find Intel XE 2020 Fortran Compiler on Mac

2 views (last 30 days)
Hi everyone,
I have a set of Fortran code files that I need to compile on my Mac using Matlab 2020b.
To do so, I have downloaded Intel Parallel Studio XE 2020.
When I run:
mex -setup Fortran -v
I however get to the following:
mex -setup Fortran -v
Verbose mode is on.
... Looking for compiler 'Intel Fortran Composer XE' ...
... Looking for environment variable 'IFORT_COMPILER20' ...No.
... Looking for environment variable 'IFORT_COMPILER19' ...No.
... Looking for environment variable 'IFORT_COMPILER18' ...No.
... Executing command 'which ifort' ...Yes ('/usr/local/bin/ifort').
... Looking for folder '/opt/intel/compilers_and_libraries_2020.2.258/mac/bin/intel64' ...Yes.
... Looking for environment variable 'IFORT_COMPILER20' ...No.
... Looking for environment variable 'IFORT_COMPILER19' ...No.
... Looking for environment variable 'IFORT_COMPILER18' ...No.
... Executing command 'which ifort' ...Yes ('/usr/local/bin/ifort').
... Looking for folder '/opt/intel/compilers_and_libraries_2020.2.258/mac/compiler/lib' ...Yes.
... Executing command 'ifort --version | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' | head -1' ...Yes ('19.1.2').
... Executing command 'xcrun -sdk macosx --show-sdk-path' ...No.
Did not find installed compiler 'Intel Fortran Composer XE'.
What am I missing?
Many thanks in advance!
  3 Comments
Fabian Krusa
Fabian Krusa on 18 Oct 2020
Thanks, that and some other environment variable setting did the job. All working now.

Sign in to comment.

Answers (1)

Abhisek Pradhan
Abhisek Pradhan on 16 Oct 2020

Categories

Find more on Fortran with MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!