2016-10-28 5 views
1

rgdal 1.9.2 및 proj 패키지가 설치된 (컴파일 된) AWS RHEL6 서버가 있습니다. 이제 R에 나는 rgdal 패키지를 설치하고 싶지만이 오류를 제공합니다 :RHEL6의 r에 rgdal 패키지를 설치할 수 없으며 공유 객체 rgdal.so를로드 할 수 없습니다.

** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/Roel/R/x86_64-redhat-linux-gnu-library/3.3/rgdal/libs/rgdal.so':
libgdal.so.1: cannot open shared object file: No such file or directory Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/Roel/R/x86_64-redhat-linux-gnu-library/3.3/rgdal’ Warning in install.packages :
installation of package ‘rgdal’ had non-zero exit status

전체 설치 로그 here를 찾을 수 있습니다.

Linux에서 rgdal.so를 찾을 때 아무 것도 찾지 못합니다. 나는 또한 그것이 무엇인지를 rgdal.so하는 방법을 찾을 수 없습니다.

이 문제를 해결하는 방법에 대한 아이디어가 있습니까?

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

libgdal.so.1가에 있던 :

뿐만 아니라 내가 있기 때문에 마지막에 오류 놓쳤다 것을 더 로그에 오류가 있습니다 :

+1

이 하나를 읽어? http://stackoverflow.com/questions/15248815/rgdal-package-installation –

+0

예, 이전에이 문제가 있었지만 해결할 수있었습니다. –

+0

제게'rgdal'을 설치하는 동안 정확한 오류는'공유 객체를로드 할 수 없습니다 '/ home/ /R/x86_64-redhat-linux-gnu-library/3.3/rgdal/libs/rgdal.so':' 뒤에 'libgdal.so.20 : 공유 객체 파일을 열 수 없습니다 : 그 파일이나 디렉토리가 없습니다'. @ RoelEsselink의 답변이 해결책이었습니다. – geneorama

답변

2

나는 그것을 고정/usr/local/lib에있는 시스템.

나는 다음 않았다 :

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

이 내가 OP에서 언급 한 이후의 오류를 수정했습니다.

1

당신이 로엘의 실행하려고하면 권한이 거부 표시되는 경우

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