Info
This question is closed. Reopen it to edit or answer.
Problem with mex setup on mac os x with 2015a?
1 view (last 30 days)
Show older comments
When I try to run mex -setup FORTRAN -v to set up the fortran compiler for mex. It says it can't find the gfortran library, the result for that code is:
Verbose mode is on.
... Looking for compiler 'gfortran' ...
... Looking for environment variable 'DEVELOPER_DIR' ...No.
... Executing command 'which gfortran' ...Yes ('/usr/local/bin/gfortran').
... Looking for folder '/usr/local/bin' ...Yes.
... Executing command 'which gfortran' ...Yes ('/usr/local/bin/gfortran').
... Executing command '/usr/local/bin/gfortran -print-file-name=libgfortran.dylib' ...Yes ('libgfortran.dylib').
... Looking for folder 'libgfortran.dylib' ...No.
Did not find installed compiler 'gfortran'.
... Looking for compiler 'Intel Fortran' ...
... Looking for environment variable 'IFORT_COMPILER14' ...No.
... Looking for environment variable 'IFORT_COMPILER13' ...No.
... Executing command 'which ifort' ...No.
Did not find installed compiler 'Intel Fortran'.
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2015a/maci64.html.
I have tried editing the path as per this question however my system does find the gfortran it just seems to get confused with the "... Looking for folder 'libgfortran.dylib' ...No." section. Can anyone help get mex working on my system.
0 Comments
Answers (2)
Geoff Hayes
on 7 Apr 2015
Philip - did you try running the following (or something similar) before doing the above
setenv('PATH', [getenv('PATH') ':/usr/local/gfortran/bin']);
I had to do this before selecting the gfortran compiler (running R2014a on 10.8.5).
1 Comment
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!