我试图使用NetBeans 8.2在我的Mac上运行的MacOS 10.14.3莫哈韦运行Fortran代码。我安装GCC使用自制软件,编译器在/usr/local/Cellar/gcc/8.2.0/bin/gfortran发现。这是NetBeans的控制台错误:
cd '/Users/david/Desktop/Computational/ComputationalHW'
/usr/bin/make -f Makefile CONF=Debug
"/Library/Developer/CommandLineTools/usr/bin/make" -f
nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
"/Library/Developer/CommandLineTools/usr/bin/make" -f
nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/computationalhw
mkdir -p dist/Debug/GNU-MacOSX
gfortran -o dist/Debug/GNUMacOSX/computationalhwbuild/Debug/GNUMacOSX/HW1.o
make[2]: gfortran: No such file or directory
make[2]: *** [dist/Debug/GNU-MacOSX/computationalhw] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 113ms)
下面是我的NetBeans配置:image
更新:我也尝试过这种配置,同样的错误:
/usr/local/bin/gfortran
任何帮助表示赞赏。
更新:我们必须简单地添加在/ usr / local / bin目录/至$ PATH NetBeans上。这解决了问题。