2014-08-29 1 views
0

특히 Linux에서 rggobi를 로컬로 설치하려고합니다 (루트 액세스 권한이 없음). 그래서 로컬에 ggobi를 설치했습니다.R 패키지 설치 : 로컬에 설치된 라이브러리 사용

cd ggobi-2.1.11/ 
./configure --prefix=~/my-apps/ --with-all-plugins 
make 
make install 

괜찮 았습니다. 그럼 난

$ R CMD INSTALL /tmp/Rtmp2PL6au/downloaded_packages/rggobi_2.1.20.tar.gz -l ~/R/x86_64-redhat-linux-gnu-library/3.1/ 
* installing *source* package ‘rggobi’ ... 
** package ‘rggobi’ successfully unpacked and MD5 sums checked 
checking for pkg-config... /usr/bin/pkg-config 
checking pkg-config is at least version 0.9.0... yes 
checking for GGOBI... no 
configure: error: Package requirements (ggobi >= 2.1.6) were not met: 
No package 'ggobi' found 

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. 
Alternatively, you may set the environment variables GGOBI_CFLAGS and GGOBI_LIBS to avoid the need to call pkg-config. 
See the pkg-config man page for more details. 
ERROR: configuration failed for package ‘rggobi’ 
* removing ‘/apps/infrafs1/rdahiya/R/x86_64-redhat-linux-gnu-library/3.1/rggobi’ 

내가 추가 시도했습니다 ~/내 - 애플 리케이션/lib 디렉토리/pkgconfig /를 installtion이 조금 더 가야하지만, 마지막에이

building package indices 
testing if installed package can be loaded 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
unable to load shared object '~/R/x86_64-redhat-linux-gnu-library/3.1/rggobi/libs/rggobi.so': libggobi.so.0: cannot open shared object file: No such file or directory 
Error: loading failed 
Execution halted 
ERROR: loading failed 
removing ‘~/R/x86_64-redhat-linux-gnu-library/3.1/rggobi’ 

libggobi.so을 다른 오류를 제공 도움이 PKG_CONFIG_PATH에서 .0 ~/my-apps/lib /에 있습니다. R을 올바른 장소를 보는 방법을 제안합니까?

답변

0

나는 (?)을 발견했다. LD_LIBRARY_PATH = ~/my-apps/lib /를 설치하거나 rgobi를로드하려는 향후 R 세션을 실행하는 동안 설정해야합니다. 더 깨끗한 해결책이 있다면 공유하십시오.