就是照搬国外论坛。
This is how I got it working on Mac osx Mavericks:
Open terminal
type --> xcode-select --install
A pop-up windows will apear asking you about install tools
choose install tools
wait install to finish
最好重新安装一次gcc或者gfortran
打开终端
输入xcode-select --install
出现对话框,选择安装,同意。
然后就可以按照以前的方法使用fortran了I