Set fortran as compiler in Matlab_R2021a (in MacOS catalina 10.15.7)

3 visualizaciones (últimos 30 días)
Mahsa Taheri
Mahsa Taheri el 28 de Ag. de 2021
Respondida: Salman Ahmed el 31 de Ag. de 2021
Hello
I would like to mex -setup fortran in my matlab but It always fails (I have Visual studio, x-code, and fortran on my mac installed) and I get the error :
Error using mex
Supported compiler not found. For options, visit
Once I type in terminal which gfortran, I get "/usr/local/bin/gfortran".
Can any one help me (I followed the link bellow steps but it still fails)?
  2 comentarios
Walter Roberson
Walter Roberson el 28 de Ag. de 2021
Intel Parallel Studios is the only supported Fortran for MacOS.
You saw in that Answer how much trouble I had getting gfortran to work for MacOS. I never did manage to get it to actually run a fortran shared object successfully.
I would recommend using Intel Parallel Studios.
Mahsa Taheri
Mahsa Taheri el 29 de Ag. de 2021
Dear Walter Roberson
Thanks for the reply. I actually installed Intel Fortran Compiler Classic for macOS from here https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#fortran. But I can't still mex fortran from matlab. Could you please help me by some more details.
Sorry if my questions seems crazy, my knowledge from mac is almost zero.

Iniciar sesión para comentar.

Respuestas (1)

Salman Ahmed
Salman Ahmed el 31 de Ag. de 2021
Hi Mahsa,
Make sure you have the right supported compiler for your OS : Supported Compilers
Hope it helps.

Categorías

Más información sobre Fortran with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by