Filter löschen
Filter löschen

Matlab does not find Intel XE 2020 Fortran Compiler on Mac

1 Ansicht (letzte 30 Tage)
Fabian Krusa
Fabian Krusa am 12 Okt. 2020
Kommentiert: Omar Betancourt am 20 Mär. 2021
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 Kommentare
Fabian Krusa
Fabian Krusa am 18 Okt. 2020
Thanks, that and some other environment variable setting did the job. All working now.
Omar Betancourt
Omar Betancourt am 20 Mär. 2021
What was that other environment varialbe?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Abhisek Pradhan
Abhisek Pradhan am 16 Okt. 2020

Kategorien

Mehr zu Fortran with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by