我在 Mac (OSX 10.15.7 Catalina) 上使用 Octave(-gui) 并尝试安装该netcdf
软件包。我收到一个错误,提示找不到 nc-config。我的 Octave 版本是 6.1.0。我也尝试从本地 tar.gz 安装。这是我的 Octave 控制台的输出:
>> pkg install -forge netcdf
configure: error: nc-config not found
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -std=gnu++11 accepts -g... yes
checking for mkoctfile... /Applications/Octave-6.1.0.app/Contents/Resources/usr/Cellar/octave-octave-app@6.1.0/6.1.0/bin/mkoctfile-6.1.0
checking for nc-config... no
error: pkg: error running the configure script for netcdf.
error: called from
configure_make at line 93 column 9
install at line 196 column 7
pkg at line 568 column 9
有人可以指出我正确的方向吗?谢谢!