Source from http://www.voidcn.com/article/p-wytwfege-bvm.html
sudo apt-get install r-cran-ncdf4
上面的命令应该已经安装了nc-config,如果没有尝试:
sudo apt-get install netcdf-bin
nc-config
sudo apt install libnetcdf-dev
问题似乎是找到了nc-config. 在安装ncdf4之前通过安装Debian软件包libnetcdf-dev解决了这个问题.