我正在尝试在CentOS 6.9的R studio上安装HiClimR软件包。我使用R Studio Desktop而不是R Studio Server,并且我通过Miniconda 3安装了R Studio Desktop(以便可以使用我的Miniconda版本的R,即3.6.0版)。
当我尝试安装它时,我遇到了这个问题:
Error, nc-config not found or not executable. This is a script that comes with the
netcdf library, version 4.1-beta2 or later, and must be present for configuration
to succeed.
If you installed the netcdf library (and nc-config) in a standard location, nc-config
should be found automatically. Otherwise, you can specify the full path and name of
the nc-config script by passing the --with-nc-config=/full/path/nc-config argument
flag to the configure script. For example:
./configure --with-nc-config=/sw/dist/netcdf4/bin/nc-config
Special note for R users:
-------------------------
To pass the configure flag to R, use something like this:
R CMD INSTALL --configure-args="--with-nc-config=/home/joe/bin/nc-config" ncdf4
where you should replace /home/joe/bin etc. with the location where you have
installed the nc-config script that came with the netcdf 4 distribution.
由于问题似乎出在ncdf4,特别是我的nc-config文件上,所以在网上进行了一些挖掘之后,我发现this post表示应该将其安装在外壳中。
我认为,由于我使用的是Miniconda,因此我应该运行conda install netcdf
而不是sudo apt install netcdf-devel
,但miniconda似乎不支持netcdf软件包。
我怎样才能将netcdf安装到我的conda环境中?