2011-10-21 5 views
1

rgdalRStudio (0.94.110)에로드되지 않고 R (2.13.2)에로드되지 않는 이유는 무엇입니까?RStudio에서 rgdal을로드하는 중 문제가 발생했습니다.

abarbour% R 

R version 2.13.2 (2011-09-30) 
Copyright (C) 2011 The R Foundation for Statistical Computing 
ISBN 3-900051-07-0 
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) 

RStudio에서,

> library(rgdal) 
Loading required package: methods 
Loading required package: sp 
Geospatial Data Abstraction Library extensions to R successfully loaded 
Loaded GDAL runtime: GDAL 1.8.1, released 2011/07/09 
Path to GDAL shared files: /Library/Frameworks/GDAL.framework/Versions/1.8/Resources/gdal 
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470] 
Path to PROJ.4 shared files: (autodetected) 

를하지만 [불필요한 정보를 제거하기 위해 편집] :

R version 2.13.2 (2011-09-30) 
Copyright (C) 2011 The R Foundation for Statistical Computing 
ISBN 3-900051-07-0 
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) 

[다시 편집]

> library(rgdal) 
Loading required package: methods 
Loading required package: sp 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/Users/abarbour/kook.processing/R/PACKAGES/rgdal/libs/x86_64/rgdal.so': 
    dlopen(/Users/abarbour/kook.processing/R/PACKAGES/rgdal/libs/x86_64/rgdal.so, 6): Symbol not found: ___emutls_get_address 
    Referenced from: /usr/local/lib/libstdc++.6.dylib 
    Expected in: /Library/Frameworks/R.framework/Resources/lib/libgcc_s.1.dylib 
in /usr/local/lib/libstdc++.6.dylib 
Error: package/namespace load failed for 'rgdal' 

아는 사람이 왜 사고? 내가 모르는 어떤 종류의 RStudio이 있습니까? rgdal가 KyngChaos (GDAL Complete framework)을 이미 가지고 설치, 다음 명령을 사용하여 설치되었는지

참고 : RStudio 지원 직원합니다 (discussion 참조)에서 기인 조쉬에

sudo R CMD INSTALL --configure-args='--with-gdal-config=/Library/Frameworks/GDAL.framework/unix/bin/gdal-config --with-proj-include=/Library/Frameworks/PROJ.framework/unix/include --with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib' rgdal_0.7-1.tar.gz 
+0

이미 [RStudio 지원에 게시나요 :

> setRepositories() 

> install.packages("rgdal") > library(rgdal) 

[ "1 2"를 입력]은 일반로드 동작을 제공합니다 ] (http://support.rstudio.org/)? 아마도이 질문을하는 것이 더 좋은 곳 일 것입니다. – ROLO

+0

예 (http://support.rstudio.org/help/discussions/problems/1064-loading-rgdal-fails).하지만이 질문에 대한 링크는 눈에 훨씬 쉽게 서식을 지정하기 때문에 가능합니다. –

답변

3

신용. RStudio 내에서

:

> library(rgdal) 
Loading required package: methods 
Loading required package: sp 
Geospatial Data Abstraction Library extensions to R successfully loaded 
Loaded GDAL runtime: GDAL 1.8.0, released 2011/01/12 
Path to GDAL shared files: /Users/abarbour/kook.processing/R/PACKAGES/rgdal/gdal 
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470] 
Path to PROJ.4 shared files: /Users/abarbour/kook.processing/R/PACKAGES/rgdal/proj