gcc45 and gfortran issue

Ryan Schmidt ryandesign at macports.org
Tue May 1 08:11:01 PDT 2012


On May 1, 2012, at 06:23, Jason Swails wrote:

> You should install gcc_select and make sure you set the proper compiler suite:
> 
> sudo port install gcc_select
> sudo port select gcc mp-gcc45
> 
> That should set up the symlinks so that 'gfortran' in /opt/local/bin links to gfortran-mp-4.5

Or you can use "port contents gcc45" to see what the port installed, see from the output that it provides "gfortran-mp-4.5", not "gfortran", and then call the compiler using "gfortran-mp-4.5". "port contents" is what you should use anytime you have the question "I installed a port but the file I thought it would provide still doesn't exist."




More information about the macports-users mailing list