无法加载共享对象rgdal

无法加载共享对象rgdal

本文介绍了无法在RHEL6上的R中安装rgdal软件包,无法加载共享对象rgdal.so的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有安装(编译)rgdal 1.9.2和proj软件包的AWS RHEL6服务器.现在在R中,我想安装rgdal软件包,但是会出现此错误:

I have AWS RHEL6 server where I've installed (compiled) rgdal 1.9.2 and proj packages. Now in R I want to install rgdal package but it gives this error:

完整安装日志可在此处找到.

Full install log can be found here.

当我在Linux中找到rgdal.so时,找不到任何东西.我也找不到如何获得rgdal.so的内容.

When I do locate rgdal.so in Linux it doesn't find anything. I can also not find how to get rgdal.so of what it is part of.

有人对如何解决此问题有任何想法吗?

Has anyone any idea on how to fix this?

推荐答案

我已修复:

由于最后的错误,我也错过了日志中的错误:

There is an error further up in the log as well that I had missed because of the error at the end:

./proj_conf_test: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory

libgdal.so.1在/usr/local/lib中的系统上.

libgdal.so.1 was on the system in /usr/local/lib.

然后我做了:

echo "/usr/local/lib" >> /etc/ld.so.conf.d/R-dependencies-x86_64.conf
ldconfig

这解决了我在OP中提到的后续错误.

This fixed the subsequent error that I mentioned in the OP.

这篇关于无法在RHEL6上的R中安装rgdal软件包,无法加载共享对象rgdal.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 00:56