Info
此问题已关闭。 请重新打开它进行编辑或回答。
Problem with mex setup on mac os x with 2015a?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Geoff Hayes
2015-4-7
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!