【发布时间】:2017-08-10 23:46:03
【问题描述】:
我尝试安装ncdf4 包。我有 R 版本 3.1.1。
问题似乎在于找到nc-config。如果我用谷歌搜索这个特定问题,那么我会找到有同样问题的人,他们通过在安装 ncdf4 之前安装 Debian 软件包 libnetcdf-dev 解决了这个问题。
我已经安装了那个包,但我一直遇到同样的问题,
错误如下:
checking for nc-config... no
-----------------------------------------------------------------------------------
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.
【问题讨论】:
-
你可以做的是打开一个新的终端并执行
which nc-config。这将显示文件在系统中的实际位置。如果确实安装了此文件,则问题可能是 Linux 将其安装在给定位置,而 R 期望它在其他位置(例如/usr/local/bin与/usr/bin)。您可以尝试通过将包含nc-config的库添加到您的PATH环境变量来解决此问题。或者问题可能是无关的,例如32 位与 64 位。\