Info

This question is closed. Reopen it to edit or answer.

Supported Fortran Compiler 2013b OS X 10.8?

1 view (last 30 days)
Pablo
Pablo on 2 Mar 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
Can't find gcc-4.3.x binaries to install on OS X 10.8.4 with Matlab 2013b. Compiling GCC and GFORTRAN 4.3 with Xcode 4.3 does not work. Would mex-fortran compilation work with GCC-4.8? or would it work with the available binaries for GCC-4.2?
Setting up the mex-fortran compiler is annoyingly complicated, please help! Thanks!!
  2 Comments
Stephen Shank
Stephen Shank on 7 May 2014
I'm not sure if this directly answers your question, but I got set up to mex Fortran on OS 10.8.5 with R2014a. I did this by installing Macports:
https://www.macports.org/
and running
sudo port install gcc43
which resulted in a gfortran binary found in /opt/local/bin/gfortran-mp-4.3. I created a symbolic link to this binary named gfortran and showed MATLAB where to look for this by modifying the path with setenv via
setenv('PATH','/PATH/TO/SYMBOLIC/LINK:/OTHER/DEFAULT/PATHS')
and this successfully mexed the timestwo.F example. Hope this helps. Did you have any luck with the approaches you described?
Pablo
Pablo on 22 Jun 2014
Hi Stephen,
I just saw your message. Thanks for your answers, could you explain me how exactly did you create the symbolic link? Do I need to modify my mexopt.sh after creating the link?
I wasn't able to use setup gcc-4.8 nor with gcc-4.2

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!