Open PanfengZhang opened 1 month ago
Hi @PanfengZhang ,
I think the problem is that the netcdf library is being detected in your miniconda installation, but that is not in the normal library path.
RNetCDF uses the command nc-config
to determine details of the netcdf installation, and nc-config
is being found in the miniconda directory. If you have the Ubuntu version of netcdf installed, you could use it by removing miniconda from your PATH
environment variable (temporarily) before installing RNetCDF.
Otherwise it may be possible to use the miniconda netcdf by installing RNetCDF from the R command prompt with a command like this:
install.packages("RNetCDF", configure.args="LDFLAGS='-L/home/zhang/miniconda3/lib -Wl,-rpath=/home/zhang/miniconda3/lib'")
The -rpath
option ensures that R can find the miniconda netcdf library when loading RNetCDF.
As a last resort, another option is to set the library path as follows, but it could have unwanted side-effects for other software:
export LD_LIBRARY_PATH=/home/zhang/miniconda3/lib
When I was installing packages on the Ubuntu system, I encountered some issues. Below are the error messages.