Matlab does not find Intel XE 2020 Fortran Compiler on Mac

4 次查看(过去 30 天)
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.

请先登录,再进行评论。

回答(1 个)

Abhisek Pradhan
Abhisek Pradhan 2020-10-16

类别

Help CenterFile Exchange 中查找有关 Fortran with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by