2015-11-24 37 views
1

rgdal失敗的安裝嘗試安裝rgdal庫R. 與下列消息R在R 3.2.2 OS X 10.11.1(酋長)

> install.packages("rgdal") 
Installing package into ‘/Users/rpopat/Library/R/3.2/library’ 
(as ‘lib’ is unspecified) 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0  0 0  0 0  0  0  0 --:--:-- --:--:-- --:--:--  0 0  0 0  0 0  0  0  0 --:--:-- --:--:-- --:--:--  0100 1592k 100 1592k 0  0 1235k  0 0:00:01 0:00:01 --:--:-- 1236k 
* installing *source* package ‘rgdal’ ... 
** package ‘rgdal’ successfully unpacked and MD5 sums checked 
configure: CC: clang 
configure: CXX: clang++ 
configure: rgdal: 1.1-1 
checking for /usr/bin/svnversion... yes 
configure: svn revision: 572 
checking for gdal-config... no 
no 
configure: error: gdal-config not found or not executable. 
ERROR: configuration failed for package ‘rgdal’ 
* removing ‘/Users/rpopat/Library/R/3.2/library/rgdal’ 
* restoring previous ‘/Users/rpopat/Library/R/3.2/library/rgdal’ 
Warning in install.packages : 
    installation of package ‘rgdal’ had non-zero exit status 

The downloaded source packages are in 
    ‘/private/var/folders/3z/1cdvjt8s5l73fq0k7tzpfll80000gn/T/Rtmpy3KTTV/downloaded_packages’ 
> sessionInfo() 
R version 3.2.2 (2015-08-14) 
Platform: x86_64-apple-darwin15.0.0 (64-bit) 
Running under: OS X 10.11.1 (El Capitan) 

locale: 
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8 

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

other attached packages: 
[1] sp_1.2-1 

loaded via a namespace (and not attached): 
[1] tools_3.2.2  grid_3.2.2  lattice_0.20-33 

我曾嘗試失敗...

  • 從Bioconductor的
  • 安裝GDAL seperately
  • 下載一箇舊版本的rgdal和本地二進制安裝安裝(這個我安裝成功,但在加載軟件包時崩潰了)。

任何幫助,非常感謝。

乾杯!

+0

你有'安裝gdal'?如果不是,你可以使用自制軟件來安裝它 –

+0

謝謝我通過自制軟件安裝了gdal, – roman

回答

0

裏普利博士解釋說,你應該使用下面的代碼安裝rgdal和rgeos:所以你從CRAN install.packages依賴

setRepositories(IND = C(1,6))#( C( 'rge​​os', 'rgdal'))

和它的工作的(酋長)OS X 10.11.4