[英]RGDAL installation error: libnetcdf.so.6: cannot open shared object file: No such file or directory
I run RStudio Server on ubuntu 14.04. 我在ubuntu 14.04上运行RStudio服务器。 When trying to install the rgdal package I get the following error message:
尝试安装rgdal软件包时,出现以下错误消息:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
dyn.load(文件,DLLpath = DLLpath,...)中的错误:
unable to load shared object '/home/admin2/R/x86_64-pc-linux-gnu- library/2.14/rgdal/libs/rgdal.so':无法加载共享对象'/ home / admin2 / R / x86_64-pc-linux-gnu- library / 2.14 / rgdal / libs / rgdal.so':
libnetcdf.so.6: cannot open shared object file: No such file or directorylibnetcdf.so.6:无法打开共享对象文件:没有这样的文件或目录
Error: loading failed错误:加载失败
Execution halted执行停止
I upgraded RStudio Server, R-Core and all Ubuntu packages to their latest versions but no success. 我将RStudio服务器,R-Core和所有Ubuntu软件包升级到了最新版本,但没有成功。 I also tried
apt-get install lib32stdc++6
as suggested here , but also no changes. 我也尝试按照这里的建议
apt-get install lib32stdc++6
,但也没有任何更改。 I think it is a problem specific to GDAL and the indexing of shared libraries in unix. 我认为这是特定于GDAL和UNIX中共享库索引的问题。 Can anyone help please?
有人可以帮忙吗?
Ok I got it done removing Gdal completly, compiling it from source again and setting library paths correctly as described here . 好的,我完成了完全删除Gdal的操作,再次从源代码对其进行了编译,并按照此处所述正确设置了库路径。 Later adding
/usr/local/lib/
to /etc/ld.so.conf
and run sudo ldconfig
as described here . 稍后将
/usr/local/lib/
到/etc/ld.so.conf
并按此处所述运行sudo ldconfig
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.