Matlab does not find Intel XE 2020 Fortran Compiler on Mac

2 ビュー (過去 30 日間)
Fabian Krusa
Fabian Krusa 2020 年 10 月 12 日
コメント済み: Omar Betancourt 2021 年 3 月 20 日
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 件のコメント
Fabian Krusa
Fabian Krusa 2020 年 10 月 18 日
Thanks, that and some other environment variable setting did the job. All working now.
Omar Betancourt
Omar Betancourt 2021 年 3 月 20 日
What was that other environment varialbe?

サインインしてコメントする。

回答 (1 件)

Abhisek Pradhan
Abhisek Pradhan 2020 年 10 月 16 日

カテゴリ

Help Center および File ExchangeFortran with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by